Qiang Ning 71fa6f134d 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-30 12:42:10 +01:00
..
2016-11-29 08:21:33 +00:00
2018-06-11 07:20:17 -07:00
2018-07-04 07:17:13 +01:00
2018-01-08 11:03:35 +00:00
2017-07-18 08:27:18 +01:00
2016-08-10 09:25:18 +01:00
2017-04-27 09:25:04 +01:00