diff options
author | 2020-02-05 15:32:48 +0300 | |
---|---|---|
committer | 2020-02-13 20:37:23 +0530 | |
commit | 2227ab4216cd4d56619733bcfaee7e6943cdc9aa (patch) | |
tree | 2959547d3aca5e11664e9112bf3d24a74577a0da /lib/test_overflow.c | |
parent | dmaengine: doc: fix warnings/issues of client.rst (diff) | |
download | wireguard-linux-2227ab4216cd4d56619733bcfaee7e6943cdc9aa.tar.xz wireguard-linux-2227ab4216cd4d56619733bcfaee7e6943cdc9aa.zip |
dmaengine: idxd: Fix error handling in idxd_wq_cdev_dev_setup()
We can't call kfree(dev) after calling device_register(dev). The "dev"
pointer has to be freed using put_device().
Fixes: 42d279f9137a ("dmaengine: idxd: add char driver to expose submission portal to userland")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20200205123248.hmtog7qa2eiqaagh@kili.mountain
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions