linux/net/nfc/nci
Linmao Li 2e65bafdfd
nfc: nci: free destination parameters when closing a connection
When a connection is closed, nci_core_conn_close_rsp_packet() frees
conn_info but not conn_info->dest_params, which is a separate devm
allocation. Each connect/close cycle leaks one dest_params until the
NFC device is removed. Free dest_params along with conn_info.

Fixes: 9b8d1a4cf2 ("nfc: nci: Add an additional parameter to identify a connection id")
Cc: stable@vger.kernel.org
Signed-off-by: Linmao Li <lilinmao@kylinos.cn>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/20260721023518.1697625-1-lilinmao@kylinos.cn
Signed-off-by: David Heidelberg <david@ixit.cz>
2026-08-11 18:10:04 +02:00
..
core.c nfc: nci: fix circular locking dependency in nci_close_device 2026-03-19 16:56:18 -07:00
data.c nfc: nci: fix double completion race in nci_data_exchange_complete 2026-08-11 18:10:02 +02:00
hci.c nfc: hci: fix out-of-bounds read in HCP header parsing 2026-05-07 12:42:09 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
lib.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ntf.c nfc: nci: fix uninit-value in the RF discover/activated NTF handlers 2026-08-11 18:10:03 +02:00
rsp.c nfc: nci: free destination parameters when closing a connection 2026-08-11 18:10:04 +02:00
spi.c net: fill in MODULE_DESCRIPTION()s for NFC 2024-01-11 16:16:08 -08:00
uart.c nfc: nci: uart: Constify struct tty_ldisc_ops 2026-06-11 20:21:32 +02:00