commit | 8379f0a8ea84f1a904e116b65751681a48a763ea | [log] [tgz] |
---|---|---|
author | Kejian Yan <yankejian@huawei.com> | Tue Jun 21 11:56:23 2016 +0800 |
committer | David S. Miller <davem@davemloft.net> | Tue Jun 21 04:51:54 2016 -0400 |
tree | 660430536c5742b7a2dea891c6bbc1aba6f80d9e | |
parent | 14ae335a8599d735d19f600c29c6249dd2c3f7a8 [diff] |
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>