android_kernel_motorola_sm6375/net/nfc
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Krzysztof Kozlowski 6ca0c94f2b nfc: llcp: fix possible use of uninitialized variable in nfc_llcp_send_connect()
[ Upstream commit 0d9b41daa5907756a31772d8af8ac5ff25cf17c1 ]

If sock->service_name is NULL, the local variable
service_name_tlv_length will not be assigned by nfc_llcp_build_tlv(),
later leading to using value frmo the stack.  Smatch warning:

  net/nfc/llcp_commands.c:442 nfc_llcp_send_connect() error: uninitialized symbol 'service_name_tlv_length'.

Fixes: de9e5aeb4f ("NFC: llcp: Fix usage of llcp_add_tlv()")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-07-27 08:37:07 +02:00
..
hci nfc: constify several pointers to u8, char and sk_buff 2023-07-27 08:37:07 +02:00
nci NFC: nci: Bounds check struct nfc_target arrays 2022-12-14 11:30:46 +01:00
af_nfc.c
core.c nfc: constify several pointers to u8, char and sk_buff 2023-07-27 08:37:07 +02:00
digital.h
digital_core.c
digital_dep.c
digital_technology.c
Kconfig
llcp.h nfc: constify several pointers to u8, char and sk_buff 2023-07-27 08:37:07 +02:00
llcp_commands.c nfc: llcp: fix possible use of uninitialized variable in nfc_llcp_send_connect() 2023-07-27 08:37:07 +02:00
llcp_core.c nfc: constify several pointers to u8, char and sk_buff 2023-07-27 08:37:07 +02:00
llcp_sock.c
Makefile
netlink.c nfc: change order inside nfc_se_io error path 2023-03-17 08:32:48 +01:00
nfc.h nfc: constify several pointers to u8, char and sk_buff 2023-07-27 08:37:07 +02:00
rawsock.c