net: ieee802154: fix a potential NULL pointer dereference
[ Upstream commit 2795e8c251614ac0784c9d41008551109f665716 ] In case alloc_ordered_workqueue fails, the fix releases sources and returns -ENOMEM to avoid NULL pointer dereference. Signed-off-by: NKangjie Lu <kjlu@umn.edu> Acked-by: NMichael Hennerich <michael.hennerich@analog.com> Signed-off-by: NStefan Schmidt <stefan@datenfreihafen.org> Signed-off-by: NSasha Levin (Microsoft) <sashal@kernel.org>
Showing
想要评论请 注册 或 登录