diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2014-07-06 22:19:46 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-08 23:04:22 (GMT) |
commit | 618ff9cebe873681e6b0edab15528890577afd27 (patch) | |
tree | 76210955c96972b828943379d21f2bba8e6a058c /drivers/staging | |
parent | 83e771fc88991c64785be00b4c771632c1055b40 (diff) | |
download | linux-618ff9cebe873681e6b0edab15528890577afd27.tar.xz |
staging: vt6656: s_nsBulkInUsbIoCompleteRead check that used sk_buff is clean and ready to reuse.
skb_push the headroom and trimmed back to 0
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/vt6656/usbpipe.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c index c8b0ed5..dd031bb 100644 --- a/drivers/staging/vt6656/usbpipe.c +++ b/drivers/staging/vt6656/usbpipe.c @@ -303,6 +303,9 @@ static void s_nsBulkInUsbIoCompleteRead(struct urb *urb) spin_unlock_irqrestore(&priv->lock, flags); return; } + } else { + skb_push(rcb->skb, skb_headroom(rcb->skb)); + skb_trim(rcb->skb, 0); } urb->transfer_buffer = skb_put(rcb->skb, |