Re: [PATCH] gpio: rockchip: Fix missing of_node_put() in rockchip_gpio_probe() and rockchip_gpiolib_register()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 6, 2022 at 8:29 AM Liang He <windhl@xxxxxxx> wrote:
>
> We should call of_node_put() for the reference returned by
> of_get_parent() which will increase the refcount.

Is it suggested by the so-called Hulk Robot? If so, it's not the first
time I see that people don't think about, and just repeat as robots
do. Have you read the code? Have you tried to understand what may
happen when you put an OF node? What would be possible consequences to
the rest of the code?

The above sentence is correct, implementation is not thought through.
It might be a correct fix, but the commit message doesn't show that
you really spent time on the change.

P.S> I would personally put all those Hulk Robot bla-bla-bla with
lowest priority to consider, too many broken submissions...

-- 
With Best Regards,
Andy Shevchenko



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux