diff options
author | Dan Carpenter <[email protected]> | 2020-02-05 15:32:48 +0300 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2020-02-13 20:37:23 +0530 |
commit | 2227ab4216cd4d56619733bcfaee7e6943cdc9aa (patch) | |
tree | 2959547d3aca5e11664e9112bf3d24a74577a0da /scripts/bpf_helpers_doc.py | |
parent | 83c49f734463980802d6dba376f69e787fb07a8e (diff) |
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 <[email protected]>
Acked-by: Dave Jiang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions