]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
bgmac: fix a missing check for build_skb
authorwangweidong <wangweidong1@huawei.com>
Wed, 13 Jan 2016 03:06:41 +0000 (11:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jan 2016 05:24:14 +0000 (00:24 -0500)
commitf1640c3ddeec12804bc9a21feee85fc15aca95f6
tree649018db5e4b76d456b53f1ad8a737b342af0fe7
parentddb5388ffd0ad75d07e7b78181a0b579824ba6f0
bgmac: fix a missing check for build_skb

when build_skb failed, it may occure a NULL pointer.
So add a 'NULL check' for it.

Signed-off-by: Weidong Wang <wangweidong1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac.c