diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2023-05-13 14:52:04 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-05-15 15:03:34 +0300 |
commit | 0d9b41daa5907756a31772d8af8ac5ff25cf17c1 (patch) | |
tree | cabef066f507d9470e9e9fb15a175e6082095680 /net/802/hippi.c | |
parent | d1e4632b304c594d6f0d4cb7581350e5a6fc33b7 (diff) | |
download | linux-0d9b41daa5907756a31772d8af8ac5ff25cf17c1.tar.xz |
nfc: llcp: fix possible use of uninitialized variable in nfc_llcp_send_connect()
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: de9e5aeb4f40 ("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>
Diffstat (limited to 'net/802/hippi.c')
0 files changed, 0 insertions, 0 deletions