diff options
author | Chen Gang <gang.chen@asianux.com> | 2012-12-19 09:18:57 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-11 16:03:38 -0800 |
commit | ece1d77ed73b335319725f1d5ffa72ca3fa9b05c (patch) | |
tree | e6caafbfa8110e9799e550c4c0afc1a516471e6b /drivers/usb/host/ohci-q.c | |
parent | 2c449e380153b72e184dd253ce6470acaee53cb0 (diff) | |
download | talos-op-linux-ece1d77ed73b335319725f1d5ffa72ca3fa9b05c.tar.gz talos-op-linux-ece1d77ed73b335319725f1d5ffa72ca3fa9b05c.zip |
USB: ohci: set urb->hcpriv = NULL immediately, after free it
although we can not say it is surely a bug.
it is better to set urb->hcpriv = NULL, after finish calling
urb_free_priv.
Signed-off-by: Chen Gang <gang.chen@asianux.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ohci-q.c')
-rw-r--r-- | drivers/usb/host/ohci-q.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/ohci-q.c b/drivers/usb/host/ohci-q.c index 7482cfbe8c5e..88731b7c5f42 100644 --- a/drivers/usb/host/ohci-q.c +++ b/drivers/usb/host/ohci-q.c @@ -44,6 +44,7 @@ __acquires(ohci->lock) // ASSERT (urb->hcpriv != 0); urb_free_priv (ohci, urb->hcpriv); + urb->hcpriv = NULL; if (likely(status == -EINPROGRESS)) status = 0; |