Miquel Raynal 71a06f1034 mac802154: Fix possible double free upon parsing error
Commit 4d1c7d87030b ("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: 4d1c7d87030b ("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
..
2022-12-13 15:47:48 -08:00
2022-12-13 15:47:48 -08:00
2022-12-13 15:47:48 -08:00
2022-12-12 11:27:42 -08:00
2022-02-25 09:36:06 +01:00
2022-12-13 15:47:48 -08:00
2022-12-13 15:47:48 -08:00
2022-12-13 15:47:48 -08:00
2022-12-02 20:33:30 -08:00
2022-12-13 15:47:48 -08:00
2022-12-13 15:47:48 -08:00
2022-12-13 15:47:48 -08:00
2022-12-13 08:44:41 -08:00
2022-12-13 15:47:48 -08:00
2022-12-13 15:47:48 -08:00
2022-12-02 20:33:30 -08:00
2022-12-13 15:47:48 -08:00
2022-08-22 14:26:30 +01:00
2022-08-22 14:26:30 +01:00
2022-12-13 15:47:48 -08:00