Qiang Ning 1fa3fb4f70 mfd: dln2: Fix memory leak in dln2_probe()
[ Upstream commit 96da8f148396329ba769246cb8ceaa35f1ddfc48 ]

When dln2_setup_rx_urbs() in dln2_probe() fails, error out_free forgets
to call usb_put_dev() to decrease the refcount of dln2->usb_dev.

Fix this by adding usb_put_dev() in the error handling code of
dln2_probe().

Signed-off-by: Qiang Ning <qning0106@126.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230330024353.4503-1-qning0106@126.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-24 17:36:48 +01:00
..
2021-09-07 12:38:59 -07:00
2023-03-10 09:39:34 +01:00
2019-07-02 12:11:31 +01:00
2019-07-15 20:18:40 -07:00
2021-09-07 12:38:59 -07:00
2021-03-10 10:58:33 +00:00
2019-07-09 08:59:39 -07:00