]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit42555b280c1d22f5fd44520a480c8f8e65cc0555
treec7e2d8dc1780050d86d821960f22cdd69a6af4ec
parentd7635648552fb74221b17dc93b149d2cf95d61fe
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