Re: [PATCH v2] video: fbdev: Check for null res pointer

2021-12-20 Thread Geert Uytterhoeven
Hi Jiasheng, On Mon, Dec 20, 2021 at 9:19 AM Jiasheng Jiang wrote: > The return value of platform_get_resource() needs to be checked. > To avoid use of error pointer in case that there is no suitable resource. Thanks for your patch! > Fixes: f7018c213502 ("video: move fbdev to drivers/video/fbd

[PATCH v2] video: fbdev: Check for null res pointer

2021-12-20 Thread Jiasheng Jiang
The return value of platform_get_resource() needs to be checked. To avoid use of error pointer in case that there is no suitable resource. Fixes: f7018c213502 ("video: move fbdev to drivers/video/fbdev") Signed-off-by: Jiasheng Jiang --- Changelog: v1 -> v2 *Change 1. Correct the commit message