[PATCH] ARM: OMAP2+: adjust the location of put_device() call in omapdss_init_of

Tony Lindgren tony at atomide.com
Fri Dec 17 04:14:24 PST 2021


* cgel.zte at gmail.com <cgel.zte at gmail.com> [211116 08:28]:
> From: Ye Guojin <ye.guojin at zte.com.cn>
> 
> This was found by coccicheck:
> ./arch/arm/mach-omap2/display.c, 272, 1-7, ERROR missing put_device;
> call of_find_device_by_node on line 258, but without a corresponding
> object release within this function.
> 
> Move the put_device() call before the if judgment.

Thanks applying into omap-for-v5.17/fixes-not-urgent.

Tony



More information about the linux-arm-kernel mailing list