]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ieee802154: fix one possible memleak in adf7242_probe
authorLiu Jian <liujian56@huawei.com>
Fri, 17 Jul 2020 09:01:21 +0000 (17:01 +0800)
committerStefan Schmidt <stefan@datenfreihafen.org>
Fri, 17 Jul 2020 09:31:08 +0000 (11:31 +0200)
commit66673f96f0f968b991dc38be06102246919c663c
tree0093b2cc9c05b42be8b38b07182d55ff2b13d082
parent473309fb8372365ad211f425bca760af800e10a7
ieee802154: fix one possible memleak in adf7242_probe

When probe fail, we should destroy the workqueue.

Fixes: 2795e8c25161 ("net: ieee802154: fix a potential NULL pointer dereference")
Signed-off-by: Liu Jian <liujian56@huawei.com>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Link: https://lore.kernel.org/r/20200717090121.2143-1-liujian56@huawei.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
drivers/net/ieee802154/adf7242.c