[PATCH] usb: musb: host: Fix NULL pointer dereference in SMP environment

2016-02-19 Thread Liu Xiang
o the qh in musb_h_disable should be checked.If the qh is emtpy, then recycle it and go to exit directly. Signed-off-by: Liu Xiang --- drivers/usb/musb/musb_host.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb

[PATCH v2] usb: musb: host: Fix NULL pointer dereference in SMP environment

2016-02-27 Thread Liu Xiang
h in musb_h_disable should be checked.If the qh is emtpy, then recycle it and go to exit directly. --- v2: - Modify the urb empty condition --- Signed-off-by: Liu Xiang --- drivers/usb/musb/musb_host.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/usb/musb/mu