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)
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>

No differences found