android_kernel_samsung_a7y1.../drivers/nfc/st21nfca
Pan Bian 064efb7f14 NFC: st21nfca: fix double free
[ Upstream commit 99a8efbb6e30b72ac98cecf81103f847abffb1e5 ]

The variable nfcid_skb is not changed in the callee nfc_hci_get_param()
if error occurs. Consequently, the freed variable nfcid_skb will be
freed again, resulting in a double free bug. Set nfcid_skb to NULL after
releasing it to fix the bug.

Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 11:48:19 +02:00
..
core.c NFC: st21nfca: fix double free 2020-04-07 11:48:19 +02:00
dep.c
i2c.c
Kconfig
Makefile
se.c st21nfca_connectivity_event_received: null check the allocation 2020-04-06 20:52:51 +02:00
st21nfca.h
vendor_cmds.c