summaryrefslogtreecommitdiffstats
path: root/crypto/cfb.c
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2022-12-17 00:57:42 +0100
committerStefan Schmidt <stefan@datenfreihafen.org>2022-12-19 11:38:12 +0100
commit71a06f1034b91e15d3ba6b5539c7d3a2d7f13030 (patch)
treeacca650d1be2e7a04ae79f848059f28c41367690 /crypto/cfb.c
parent9cd3fd2054c3b3055163accbf2f31a4426f10317 (diff)
downloadlinux-stable-71a06f1034b91e15d3ba6b5539c7d3a2d7f13030.tar.gz
linux-stable-71a06f1034b91e15d3ba6b5539c7d3a2d7f13030.tar.bz2
linux-stable-71a06f1034b91e15d3ba6b5539c7d3a2d7f13030.zip
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>
Diffstat (limited to 'crypto/cfb.c')
0 files changed, 0 insertions, 0 deletions