summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorLv Yunlong <lyl2019@mail.ustc.edu.cn>2021-04-27 09:22:58 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-22 10:59:38 +0200
commit8de8d1d052dd5bf1d5556a33c2927fdfe5d6bf7e (patch)
tree8a15928433fb7bda0659f180e3b7d04f2c033ad9 /samples
parenta16cd5f2bf8e3b0967488fe29cdf999b237af479 (diff)
downloadlinux-stable-8de8d1d052dd5bf1d5556a33c2927fdfe5d6bf7e.tar.gz
linux-stable-8de8d1d052dd5bf1d5556a33c2927fdfe5d6bf7e.tar.bz2
linux-stable-8de8d1d052dd5bf1d5556a33c2927fdfe5d6bf7e.zip
net:nfc:digital: Fix a double free in digital_tg_recv_dep_req
[ Upstream commit 75258586793efc521e5dd52a5bf6c7a4cf7002be ] In digital_tg_recv_dep_req, it calls nfc_tm_data_received(..,resp). If nfc_tm_data_received() failed, the callee will free the resp via kfree_skb() and return error. But in the exit branch, the resp will be freed again. My patch sets resp to NULL if nfc_tm_data_received() failed, to avoid the double free. Fixes: 1c7a4c24fbfd9 ("NFC Digital: Add target NFC-DEP support") Signed-off-by: Lv Yunlong <lyl2019@mail.ustc.edu.cn> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions