Re: [PATCH net v3 11/14] net: pse-pd: free the notification kfifo when registration fails

From
Kory Maincent <kory.maincent@bootlin.com>
Date
2026-11-04 15:20:04
Also in
lkml
Reply to
Carlo Szelinsky, 2026-11-03
On Tue, 03 Nov 2026 23:02:14 +0100, Carlo Szelinsky [off-list ref] wrote:
When pse_controller_register() fails after it allocated the
notification kfifo, it returns without freeing it.

Free the kfifo on every error path.

Found by code inspection and AI review.

[...]
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>

-- 
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
Thread (32 messages) 32 messages, 3 authors, last reply 1d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help