netpoll: fix position of network header
authorAmerigo Wang <amwang@redhat.com>
Mon, 3 Jun 2013 16:31:36 +0000 (16:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jun 2013 00:37:04 +0000 (17:37 -0700)
commit00f97da17a0c8d656d0c9a60b1d7f38735f69817
tree472a9a30b7367331d97ac9c7bead437d5f4227b2
parent525cebedb32a87fa48584bc44e14170beb2c10d1
netpoll: fix position of network header

Similar to the problem in pktgen, netpoll uses skb_tail_offset()
too, as the code is copied from pktgen.

Also use return values of skb_put() directly, this will simiplify
the code.

Reported-by: Thomas Graf <tgraf@suug.ch>
Cc: Thomas Graf <tgraf@suug.ch>
Cc: Daniel Borkmann <dborkmann@redhat.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/netpoll.c