summaryrefslogtreecommitdiffstats
path: root/net/nfc/netlink.c
diff options
context:
space:
mode:
authorPan Bian <bianpan2016@163.com>2019-11-07 02:33:20 +0100
committerDavid S. Miller <davem@davemloft.net>2019-11-07 06:48:29 +0100
commit99a8efbb6e30b72ac98cecf81103f847abffb1e5 (patch)
treeed92ada605c3dbdcb6438597daa1a287c737be5b /net/nfc/netlink.c
parentnet: hns3: add compatible handling for command HCLGE_OPC_PF_RST_DONE (diff)
downloadlinux-99a8efbb6e30b72ac98cecf81103f847abffb1e5.tar.xz
linux-99a8efbb6e30b72ac98cecf81103f847abffb1e5.zip
NFC: st21nfca: fix double free
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>
Diffstat (limited to 'net/nfc/netlink.c')
0 files changed, 0 insertions, 0 deletions