]> 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)
commitc81204d6cb242aac80fbe0a434b1ec9e4eeb9b1c
treec7e2d8dc1780050d86d821960f22cdd69a6af4ec
parent80079b043eed767efae1bbfeb019cde9411ea263
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