]> git.baikalelectronics.ru Git - kernel.git/commit
net: ieee802154: ca8210: Stop leaking skb's
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 25 Jan 2022 12:14:24 +0000 (13:14 +0100)
committerStefan Schmidt <stefan@datenfreihafen.org>
Thu, 27 Jan 2022 07:20:39 +0000 (08:20 +0100)
commit41fcaa5c8a9fe2a16c5efb7f1c5508e435569d27
tree5c9e57fb4bd4fab3860de63c5978c0a211cd6d77
parente27b4b10ec417e8062fde821e575aea098d02313
net: ieee802154: ca8210: Stop leaking skb's

Upon error the ieee802154_xmit_complete() helper is not called. Only
ieee802154_wake_queue() is called manually. We then leak the skb
structure.

Free the skb structure upon error before returning.

Fixes: 7e8c65ebb33d ("ieee802154: Add CA8210 IEEE 802.15.4 device driver")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20220125121426.848337-5-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
drivers/net/ieee802154/ca8210.c