From: Malcolm Priestley Date: Sun, 6 Jul 2014 22:19:46 +0000 (+0100) Subject: staging: vt6656: s_nsBulkInUsbIoCompleteRead check that used sk_buff is clean and... X-Git-Tag: v3.17-rc1~123^2~1173 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=618ff9cebe873681e6b0edab15528890577afd27;p=karo-tx-linux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c index c8b0ed5adf7a..dd031bbb25ba 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,