Re: [PATCH v1 28/28] leds: sgm3140: Put fwnode in any case during ->probe()

From: Pavel Machek
Date: Fri May 28 2021 - 06:14:59 EST


Hi!

> fwnode_get_next_child_node() bumps a reference counting of a returned variable.
> We have to balance it whenever we return to the caller.

This (and similar) -- in half of the drivers we hold the handle from
successful probe. Is it a problem and why is it problem only for some
drivers?

Thanks for series, btw, I pushed out current version of the tree.

Best regards,
Pavel

--
http://www.livejournal.com/~pavelmachek

Attachment: signature.asc
Description: Digital signature