Re: [PATCH] MFD: dln2: fix memory leak in dln2_probe

From: Lee Jones
Date: Thu Mar 30 2023 - 13:07:22 EST


On Thu, 30 Mar 2023, Qiang Ning wrote:

> 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@xxxxxxx>
> ---
> drivers/mfd/dln2.c | 1 +
> 1 file changed, 1 insertion(+)

Applied, thanks

--
Lee Jones [李琼斯]