Skip to content

Commit 88f46b3

Browse files
liujian56Stefan-Schmidt
authored andcommitted
ieee802154: fix one possible memleak in ca8210_dev_com_init
We should call destroy_workqueue to destroy mlme_workqueue in error branch. Fixes: ded845a ("ieee802154: Add CA8210 IEEE 802.15.4 device driver") Signed-off-by: Liu Jian <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stefan Schmidt <[email protected]>
1 parent 6ef9dcb commit 88f46b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ieee802154/ca8210.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2925,6 +2925,7 @@ static int ca8210_dev_com_init(struct ca8210_priv *priv)
29252925
);
29262926
if (!priv->irq_workqueue) {
29272927
dev_crit(&priv->spi->dev, "alloc of irq_workqueue failed!\n");
2928+
destroy_workqueue(priv->mlme_workqueue);
29282929
return -ENOMEM;
29292930
}
29302931

0 commit comments

Comments
 (0)