Re: [PATCH] pinctrl: ns2: Fix potential NULL dereference

2019-06-07 Thread Linus Walleij
On Wed, May 29, 2019 at 4:42 AM Young Xiao <92siuy...@gmail.com> wrote: > platform_get_resource() may fail and return NULL, so we should > better check it's return value to avoid a NULL pointer dereference > a bit later in the code. > > Signed-off-by: Young Xiao <92siuy...@gmail.com> Patch

Re: [PATCH] pinctrl: ns2: Fix potential NULL dereference

2019-05-30 Thread Ray Jui
On 5/28/2019 7:43 PM, Young Xiao wrote: > platform_get_resource() may fail and return NULL, so we should > better check it's return value to avoid a NULL pointer dereference > a bit later in the code. > > Signed-off-by: Young Xiao <92siuy...@gmail.com> > --- >

[PATCH] pinctrl: ns2: Fix potential NULL dereference

2019-05-28 Thread Young Xiao
platform_get_resource() may fail and return NULL, so we should better check it's return value to avoid a NULL pointer dereference a bit later in the code. Signed-off-by: Young Xiao <92siuy...@gmail.com> --- drivers/pinctrl/bcm/pinctrl-ns2-mux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git