diff options
| author | Pan Bian <[email protected]> | 2019-11-07 09:33:20 +0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-11-06 21:48:29 -0800 |
| commit | 99a8efbb6e30b72ac98cecf81103f847abffb1e5 (patch) | |
| tree | ed92ada605c3dbdcb6438597daa1a287c737be5b /lib/mpi/mpi-internal.h | |
| parent | 648db0514a3808eead513d7abfaf650d02a64d5c (diff) | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions