Re: [PATCH] USB: core: Fix potental Null Pointer dereference

2019-10-09 Thread Greg Kroah-Hartman
On Wed, Oct 09, 2019 at 06:02:02PM -0700, Yizhuo wrote: > Inside function usb_device_is_owned(), usb_hub_to_struct_hub() > could return NULL but there's no check before its dereference, > which is potentially unsafe. > > Signed-off-by: Yizhuo > --- > drivers/usb/core/hub.c | 2 +- > 1 file chang

[PATCH] USB: core: Fix potental Null Pointer dereference

2019-10-09 Thread Yizhuo
Inside function usb_device_is_owned(), usb_hub_to_struct_hub() could return NULL but there's no check before its dereference, which is potentially unsafe. Signed-off-by: Yizhuo --- drivers/usb/core/hub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/core/hub.c b