diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-08-24 14:19:55 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-08-24 14:19:55 -0500 |
commit | 1ddb55275d8489d0ecd4722a997531cf26a035cb (patch) | |
tree | 5f783334f835ee198b412163e5a82cd1e2a878e0 /drivers/usb/gadget/legacy/dbgp.c | |
parent | 6817ae225cd650fb1c3295d769298c38b1eba818 (diff) | |
parent | 5d19703822da2a8e9161302aa918c8e45a4c5eee (diff) | |
download | linux-1ddb55275d8489d0ecd4722a997531cf26a035cb.tar.gz linux-1ddb55275d8489d0ecd4722a997531cf26a035cb.tar.bz2 linux-1ddb55275d8489d0ecd4722a997531cf26a035cb.zip |
Merge tag 'fixes-for-v3.17-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into work-linus
Felipe writes:
usb: fixes for v3.17-rc2
Here's our first set of fixes for v3.17-rc cycle. Most fixes are
pretty minor changes like the signedness bug in dwc3, or the wrong
string format on MUSB.
The most interesting part is the addition of Intel Quark X1000 support
to PCH UDC.
Signed-of-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/legacy/dbgp.c')
-rw-r--r-- | drivers/usb/gadget/legacy/dbgp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/legacy/dbgp.c b/drivers/usb/gadget/legacy/dbgp.c index 986fc511a2ed..225e385a6160 100644 --- a/drivers/usb/gadget/legacy/dbgp.c +++ b/drivers/usb/gadget/legacy/dbgp.c @@ -222,10 +222,12 @@ static void dbgp_unbind(struct usb_gadget *gadget) { #ifdef CONFIG_USB_G_DBGP_SERIAL kfree(dbgp.serial); + dbgp.serial = NULL; #endif if (dbgp.req) { kfree(dbgp.req->buf); usb_ep_free_request(gadget->ep0, dbgp.req); + dbgp.req = NULL; } gadget->ep0->driver_data = NULL; |