linux/net/nfc
Pan Bian 3a30537cee NFC: fix resource leak when target index is invalid
Goto to the label put_dev instead of the label error to fix potential
resource leak on path that the target index is invalid.

Fixes: c4fbb6515a ("NFC: The core part should generate the target index")
Signed-off-by: Pan Bian <bianpan2016@163.com>
Link: https://lore.kernel.org/r/20210121152748.98409-1-bianpan2016@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-01-23 13:34:35 -08:00
..
hci
nci net: nfc: nci: fix the wrong NCI_CORE_INIT parameters 2021-01-19 16:49:28 -08:00
af_nfc.c
core.c net: nfc: Fix kerneldoc warnings 2020-10-30 11:57:56 -07:00
digital.h
digital_core.c net: nfc: Fix kerneldoc warnings 2020-10-30 11:57:56 -07:00
digital_dep.c NFC: digital: Remove two unused macroes 2020-09-05 16:01:52 -07:00
digital_technology.c
Kconfig net: sched: fix spelling mistake in Kconfig "trys" -> "tries" 2020-12-08 16:01:56 -08:00
llcp.h
llcp_commands.c
llcp_core.c
llcp_sock.c net: pass a sockptr_t into ->setsockopt 2020-07-24 15:41:54 -07:00
Makefile
netlink.c NFC: fix possible resource leak 2021-01-23 13:34:31 -08:00
nfc.h
rawsock.c NFC: fix resource leak when target index is invalid 2021-01-23 13:34:35 -08:00