On Mon 2019-07-29 12:23:56, Nishka Dasgupta wrote: > The variable gpio_ext_np in the function netxbig_leds_get_of_pdata takes > the value returned by of_parse_phandle; hence, it must be put in order > to prevent a memory leak. Add an of_node_put for gpio_ext_np before a > return statement, and move a pre-existing of_node_put statement to right > after the last usage of this variable. > Issue found with Coccinelle. > > Signed-off-by: Nishka Dasgupta <nishkadg.linux@xxxxxxxxx> Acked-by: Pavel Machek <pavel@xxxxxx> Note that I don't want to see this in stable: leak is tiny and is only in unlikely error paths. Thanks, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Attachment:
signature.asc
Description: Digital signature