linux/net/nfc
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
..
hci
nci nfc: nci: free destination parameters when closing a connection 2026-08-11 18:10:04 +02:00
af_nfc.c
core.c
digital_core.c nfc: digital: Do not dump a NULL response in command completion 2026-08-11 18:10:03 +02:00
digital_dep.c
digital_technology.c nfc: digital: clamp SENSF_RES length to the destination buffer 2026-08-11 18:10:02 +02:00
digital.h
Kconfig
llcp_commands.c nfc: llcp: fix OOB read and u8 offset wrap in TLV parsers 2026-08-11 18:10:02 +02:00
llcp_core.c nfc: llcp: bound the connect_sn TLV walk to the skb 2026-08-11 18:10:03 +02:00
llcp_sock.c
llcp.h
Makefile
netlink.c
nfc.h
rawsock.c