lan78xx: Do not access skb_queue_head list pointers directly.
authorDavid S. Miller <davem@davemloft.net>
Tue, 7 Aug 2018 06:12:17 +0000 (23:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Sep 2018 17:06:53 +0000 (10:06 -0700)
commite42a43a5cab2e019b5ab82bedb1340854709154d
tree19e096804a618082ac35346e3b6e8918b14c84a4
parent7957a9dea8bf58b02e6ebf28f91c4bce74b5c91c
lan78xx: Do not access skb_queue_head list pointers directly.

Use skb_queue_walk() instead.

Adjust inner loop test to utilize and skb_queue_is_first().
Unfortunately we have to keep pkt_cnt around because it is
used by a latter loop in this function.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c