RE: [PATCH 1/1] usb: chipidea: fix static checker warning for NULL pointer

2019-01-17 Thread Peter Chen
> > On Thu, Jan 17, 2019 at 09:24:20AM +, Peter Chen wrote: > > During the static checker, "data->usbmisc_data" may be NULL. > > I can not quite parse this sentance. Do you mean that a static checker found > this > issue? I think "yes", Dan Carpenter reported it. https://www.spinics.net

Re: [PATCH 1/1] usb: chipidea: fix static checker warning for NULL pointer

2019-01-17 Thread gre...@linuxfoundation.org
On Thu, Jan 17, 2019 at 09:24:20AM +, Peter Chen wrote: > During the static checker, "data->usbmisc_data" may be NULL. I can not quite parse this sentance. Do you mean that a static checker found this issue? > Fix it by adding this pointer judgement before using. > > Reported-by: Dan Carpen

[PATCH 1/1] usb: chipidea: fix static checker warning for NULL pointer

2019-01-17 Thread Peter Chen
During the static checker, "data->usbmisc_data" may be NULL. Fix it by adding this pointer judgement before using. Reported-by: Dan Carpenter Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_imx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/chipid

[PATCH 1/1] usb: chipidea: fix static checker warning for NULL pointer

2018-12-23 Thread Peter Chen
During the static checker, "data->usbmisc_data" may be NULL. Fix it by this pointer judgement before using. Reported-by: Dan Carpenter Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_imx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/chipidea/ci_h