net: hns: add skb_reset_mac_header() after skb being alloc
authorKejian Yan <yankejian@huawei.com>
Tue, 21 Jun 2016 03:56:23 +0000 (11:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2016 08:51:54 +0000 (04:51 -0400)
commit8379f0a8ea84f1a904e116b65751681a48a763ea
tree660430536c5742b7a2dea891c6bbc1aba6f80d9e
parent14ae335a8599d735d19f600c29c6249dd2c3f7a8
net: hns: add skb_reset_mac_header() after skb being alloc

HNS receives a packet without doing anything, but it should call
skb_reset_mac_header() to initialize the header before using
eth_hdr().

Fixes: 0d6b425a3773c3445b0f51b2f333821beaacb619
Signed-off-by: Kejian Yan <yankejian@huawei.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_enet.c