diff options
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | 2023-09-25 05:41:33 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-11-20 13:52:08 +0300 |
commit | 9ac0c0536572dbdafe675153454fac5ea2525027 (patch) | |
tree | 5594c8d94fb15a07330a2b9718a232d02a89f85c /drivers/mfd | |
parent | ee6b91411d3f6be373b4c0167423b893fb1b7546 (diff) | |
download | linux-9ac0c0536572dbdafe675153454fac5ea2525027.tar.xz |
mfd: dln2: Fix double put in dln2_probe
[ Upstream commit 759c409bc5fc496cbc22cd0b392d3cbb0c0e23eb ]
The dln2_free() already contains usb_put_dev(). Therefore,
the redundant usb_put_dev() before dln2_free() may lead to
a double free.
Fixes: 96da8f148396 ("mfd: dln2: Fix memory leak in dln2_probe()")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Link: https://lore.kernel.org/r/20230925024134.9683-1-dinghao.liu@zju.edu.cn
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/dln2.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mfd/dln2.c b/drivers/mfd/dln2.c index c3149729cec2..6cd0b0c752d6 100644 --- a/drivers/mfd/dln2.c +++ b/drivers/mfd/dln2.c @@ -827,7 +827,6 @@ out_stop_rx: dln2_stop_rx_urbs(dln2); out_free: - usb_put_dev(dln2->usb_dev); dln2_free(dln2); return ret; |