summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorLv Yunlong <lyl2019@mail.ustc.edu.cn>2021-04-27 18:22:58 +0200
committerDavid S. Miller <davem@davemloft.net>2021-04-28 00:36:10 +0200
commit75258586793efc521e5dd52a5bf6c7a4cf7002be (patch)
tree7096aad353da99399c4f9d554dc6aa5114c5ac1d /sound/soc
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next (diff)
downloadlinux-75258586793efc521e5dd52a5bf6c7a4cf7002be.tar.xz
linux-75258586793efc521e5dd52a5bf6c7a4cf7002be.zip
net:nfc:digital: Fix a double free in digital_tg_recv_dep_req
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>
Diffstat (limited to 'sound/soc')
0 files changed, 0 insertions, 0 deletions