]> git.baikalelectronics.ru Git - kernel.git/commit
net: usbnet: fix SG initialisation
authorBjørn Mork <bjorn@mork.no>
Fri, 10 Jan 2014 22:10:17 +0000 (23:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Jan 2014 07:32:04 +0000 (23:32 -0800)
commita57bccefc2e63650c51933a9361a5acadb11d69c
treed40ea95047fff32b0f3dd3d0e094d58cf49a428e
parentc8dd04af4c3cd3bc671b2c4ef5b56069c2263b8e
net: usbnet: fix SG initialisation

Commit 65f932b1403c ("USBNET: fix handling padding packet")
added an extra SG entry in case padding is necessary, but
failed to update the initialisation of the list. This can
cause list traversal to fall off the end of the list,
resulting in an oops.

Fixes: 65f932b1403c ("USBNET: fix handling padding packet")
Reported-by: Thomas Kear <thomas@kear.co.nz>
Cc: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Tested-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c