linux-stable/drivers/nfc
Chengfeng Ye 6baf8dcf62 nfc: pn533: Fix double free when pn533_fill_fragment_skbs() fails
[ Upstream commit 9fec40f850 ]

skb is already freed by dev_kfree_skb in pn533_fill_fragment_skbs,
but follow error handler branch when pn533_fill_fragment_skbs()
fails, skb is freed again, results in double free issue. Fix this
by not free skb in error path of pn533_fill_fragment_skbs.

Fixes: 963a82e07d ("NFC: pn533: Split large Tx frames in chunks")
Fixes: 93ad42020c ("NFC: pn533: Target mode Tx fragmentation support")
Signed-off-by: Chengfeng Ye <cyeaa@connect.ust.hk>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-26 11:40:36 +01:00
..
fdp NFC: fdp: Fix a signedness bug in fdp_nci_send_patch() 2020-04-02 16:34:25 +02:00
microread
nfcmrvl NFC: nfcmrvl: fix gpio-handling regression 2019-08-09 17:53:35 +02:00
nxp-nci NFC: nxp-nci: Fix NULL pointer dereference after I2C communication error 2019-12-17 20:37:27 +01:00
pn533 nfc: pn533: Fix double free when pn533_fill_fragment_skbs() fails 2021-11-26 11:40:36 +01:00
pn544 nfc: pn544: Fix occasional HW initialization failure 2020-03-11 18:02:47 +01:00
s3fwrn5 nfc: s3fwrn5: Release the nfc firmware 2020-12-29 13:47:02 +01:00
st-nci st_nci_hci_connectivity_event_received: null check the allocation 2019-08-29 08:26:38 +02:00
st21nfca NFC: st21nfca: add missed kfree_skb() in an error path 2020-06-11 09:22:59 +02:00
st95hf NFC: st95hf: Fix memleak in st95hf_in_send_cmd 2020-09-23 10:46:26 +02:00
Kconfig
Makefile
mei_phy.c
mei_phy.h
nfcsim.c nfc: nfcsim: fix use after free during module unload 2021-08-04 12:22:16 +02:00
port100.c nfc: port100: fix using -ERRNO as command type mask 2021-11-02 18:25:11 +01:00
trf7970a.c