projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffd6d17
)
usb: wusbcore: clean up the sg list that was created for out transfers
author
Thomas Pugliese
<
[email protected]
>
Thu, 26 Sep 2013 19:08:15 +0000
(14:08 -0500)
committer
Greg Kroah-Hartman
<
[email protected]
>
Thu, 26 Sep 2013 23:31:37 +0000
(16:31 -0700)
Clean up the SG list after transfer completetion for out transfers if one
was created by the HWA.
Signed-off-by: Thomas Pugliese <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/wusbcore/wa-xfer.c
patch
|
blob
|
history
diff --git
a/drivers/usb/wusbcore/wa-xfer.c
b/drivers/usb/wusbcore/wa-xfer.c
index f614fb1ed77f8a217899e518bbd4993f709a2262..61b0597c399ba4642bcecb37c141b12decec674c 100644
(file)
--- a/
drivers/usb/wusbcore/wa-xfer.c
+++ b/
drivers/usb/wusbcore/wa-xfer.c
@@
-520,6
+520,10
@@
static void wa_seg_dto_cb(struct urb *urb)
unsigned rpipe_ready = 0;
u8 done = 0;
+ /* free the sg if it was used. */
+ kfree(urb->sg);
+ urb->sg = NULL;
+
switch (urb->status) {
case 0:
spin_lock_irqsave(&xfer->lock, flags);