net: ieee802154: fix a potential NULL pointer dereference
authorKangjie Lu <kjlu@umn.edu>
Mon, 11 Mar 2019 07:25:17 +0000 (02:25 -0500)
committerStefan Schmidt <stefan@datenfreihafen.org>
Wed, 13 Mar 2019 09:07:53 +0000 (10:07 +0100)
commit2795e8c251614ac0784c9d41008551109f665716
tree6fa20e277feb95a133b24ea43f52af2dbc0d41a8
parent4ec850e5dfec092b26cf3b7d5a6c9e444ea4babd
net: ieee802154: fix a potential NULL pointer dereference

In case alloc_ordered_workqueue fails, the fix releases
sources and returns -ENOMEM to avoid NULL pointer dereference.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
drivers/net/ieee802154/adf7242.c