projects
/
wrapfs-4.14.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c821f4
)
ieee802154: fix one possible memleak in ca8210_dev_com_init
author
Liu Jian
<liujian56@huawei.com>
Mon, 20 Jul 2020 14:33:15 +0000
(22:33 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 11:14:51 +0000
(13:14 +0200)
[ Upstream commit
88f46b3fe2ac41c381770ebad9f2ee49346b57a2
]
We should call destroy_workqueue to destroy mlme_workqueue in error branch.
Fixes: ded845a781a5 ("ieee802154: Add CA8210 IEEE 802.15.4 device driver")
Signed-off-by: Liu Jian <liujian56@huawei.com>
Link:
https://lore.kernel.org/r/20200720143315.40523-1-liujian56@huawei.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ieee802154/ca8210.c
patch
|
blob
|
history
diff --git
a/drivers/net/ieee802154/ca8210.c
b/drivers/net/ieee802154/ca8210.c
index 38a41651e451cfcf4cc2345f5e21f90ee8624c3c..deace0aadad24a68415b0733798cbe06d0bad434 100644
(file)
--- a/
drivers/net/ieee802154/ca8210.c
+++ b/
drivers/net/ieee802154/ca8210.c
@@
-2923,6
+2923,7
@@
static int ca8210_dev_com_init(struct ca8210_priv *priv)
);
if (!priv->irq_workqueue) {
dev_crit(&priv->spi->dev, "alloc of irq_workqueue failed!\n");
+ destroy_workqueue(priv->mlme_workqueue);
return -ENOMEM;
}