mac802154: fakelb: Fix potential NULL pointer dereference.
authorMartin Townsend <mtownsend1973@gmail.com>
Sun, 17 May 2015 19:44:54 +0000 (21:44 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 19 May 2015 09:44:44 +0000 (11:44 +0200)
commitcb97d9a3eb0be1e33db5535955e6629e800f3f0e
treec7e2d8dc1780050d86d821960f22cdd69a6af4ec
parent0e66545701014814360b08a7a43ca652f82b6e5a
mac802154: fakelb: Fix potential NULL pointer dereference.

fakelb_hw_deliver creates a copy of the skb's header which can
potentially return NULL so we now check for this before actually
delivering to the 802.15.4 MAC layer.

Signed-off-by: Martin Townsend <martin.townsend@xsilon.com>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/fakelb.c