[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251224-shrewd-dog-of-focus-f974d2-mkl@pengutronix.de>
Date: Wed, 24 Dec 2025 13:02:50 +0100
From: Marc Kleine-Budde <mkl@...gutronix.de>
To: Szymon Wilczek <swilczek.lx@...il.com>
Cc: mailhol@...nel.org, linux-can@...r.kernel.org,
linux-kernel@...r.kernel.org, syzbot+e8cb6691a7cf68256cb8@...kaller.appspotmail.com
Subject: Re: [PATCH v2] can: etas_es58x: allow partial RX URB allocation to
succeed
On 23.12.2025 02:17:32, Szymon Wilczek wrote:
> When es58x_alloc_rx_urbs() fails to allocate the requested number of
> URBs but succeeds in allocating some, it returns an error code.
> This causes es58x_open() to return early, skipping the cleanup label
> 'free_urbs', which leads to the anchored URBs being leaked.
>
> As pointed out by maintainer Vincent Mailhol, the driver is designed
> to handle partial URB allocation gracefully. Therefore, partial
> allocation should not be treated as a fatal error.
>
> Modify es58x_alloc_rx_urbs() to return 0 if at least one URB has been
> allocated, restoring the intended behavior and preventing the leak
> in es58x_open().
>
> Fixes: 8537257874e9 ("can: etas_es58x: add core support for ETAS ES58X CAN USB interfaces")
> Reported-by: syzbot+e8cb6691a7cf68256cb8@...kaller.appspotmail.com
> Closes: https://syzkaller.appspot.com/bug?extid=e8cb6691a7cf68256cb8
> Signed-off-by: Szymon Wilczek <swilczek.lx@...il.com>
Applied to linux-can.
Thanks,
Marc
P.S.: There's no need to send a vN+1 patch as reply to vN
--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung Nürnberg | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists