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

Lee Jones
2023-03-30T17:07:22Z

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

Applied, thanks

--
Lee Jones [李琼斯]