usb: musb: avoid null pointer dereference in debug logging
authorMaarten ter Huurne <maarten@treewalker.org>
Mon, 19 Aug 2013 06:24:08 +0000 (08:24 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 27 Aug 2013 19:16:57 +0000 (14:16 -0500)
commitb130f03fd2b156ba0d1f82f8b3d9624fe342753e
tree2b8973aafaa1a7b49f99e4a70c821b5f19200271
parent0b5c1e62d80c8ee43b9f8435fe54ed097dba6a3c
usb: musb: avoid null pointer dereference in debug logging

Since commit 511f3c53 (usb: gadget: udc-core: fix a regression during
gadget driver unbinding) usb_gadget_remove_driver will pass NULL for
the driver argument.

Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_gadget.c