diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-02-05 15:32:48 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-02-13 18:07:23 +0300 |
commit | 2227ab4216cd4d56619733bcfaee7e6943cdc9aa (patch) | |
tree | 2959547d3aca5e11664e9112bf3d24a74577a0da /CREDITS | |
parent | 83c49f734463980802d6dba376f69e787fb07a8e (diff) | |
download | linux-2227ab4216cd4d56619733bcfaee7e6943cdc9aa.tar.xz |
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 'CREDITS')
0 files changed, 0 insertions, 0 deletions