linux-mainline/net/mac802154
Miquel Raynal 71a06f1034 mac802154: Fix possible double free upon parsing error
Commit 4d1c7d8703 ("mac802154: Move an skb free within the rx path")
tried to simplify error handling within the receive path by moving the
kfree_skb() call at the very end of the top-level function but missed
one kfree_skb() called upon frame parsing error. Prevent this possible
double free from happening.

Fixes: 4d1c7d8703 ("mac802154: Move an skb free within the rx path")
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20221216235742.646134-1-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
2022-12-19 11:38:12 +01:00
..
cfg.c mac802154: set filter at drv_start() 2022-10-12 12:56:58 +02:00
cfg.h
driver-ops.h mac802154: set filter at drv_start() 2022-10-12 12:56:58 +02:00
ieee802154_i.h mac802154: set filter at drv_start() 2022-10-12 12:56:58 +02:00
iface.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-12-08 18:19:59 -08:00
Kconfig
llsec.c
llsec.h
mac_cmd.c
main.c mac802154: Allow the creation of coordinator interfaces 2022-11-01 11:23:38 +01:00
Makefile
mib.c
rx.c mac802154: Fix possible double free upon parsing error 2022-12-19 11:38:12 +01:00
trace.c
trace.h mac802154: Trace the registration of new PANs 2022-11-29 15:34:32 +01:00
tx.c
util.c net: mac802154: Fixup function parameter name in docs 2022-10-26 09:40:34 +02:00