[PATCH] PCI: rockchip-dwc: Potential error pointer dereference in probe

Dan Carpenter dan.carpenter at oracle.com
Fri Aug 13 07:12:57 PDT 2021


On Fri, Aug 13, 2021 at 03:01:10PM +0100, Robin Murphy wrote:
> Indeed I've thought before that it would be nice if regulators worked like
> GPIOs, where the absence of an optional one does give you NULL, and most of
> the API is also NULL-safe. Probably a pretty big job though...

Yeah.  You have to write a NULL-safe API with optional feature.  And,
yeah, it's a lot of work to do it in retroactively...  Too much.  I'll
just redo my patch.

regards,
dan carpenter



More information about the Linux-rockchip mailing list