netpoll: fix incorrect access to skb data in __netpoll_rx
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 26 Aug 2011 06:26:15 +0000 (06:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Aug 2011 16:49:04 +0000 (12:49 -0400)
commite9278a475f845833b569ca47171e64fe48c616e0
treedfc4fbbb8bcbcd0fee9c67d17a8c3366f4094959
parent3d015565f316584139946a1c450d44209beefeb6
netpoll: fix incorrect access to skb data in __netpoll_rx

__netpoll_rx() doesnt properly handle skbs with small header

pskb_may_pull() or pskb_trim_rcsum() can change skb->data, we must
reload it.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/netpoll.c