diff options
| author | Ömer Mete Kaya <omermetekaya0@gmail.com> | 2026-09-09 15:16:22 +0300 |
|---|---|---|
| committer | David Heidelberg <david@ixit.cz> | 2026-09-23 22:13:17 +0200 |
| commit | c04981e42d94f39c1dba965cc462a046e946a6c5 (patch) | |
| tree | e6d896f5d73848721a62d52497dab09bedba97c0 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 7f2ea5ed588c03d481f0301e6c3d4240132383fb (diff) | |
nfc: llcp: fix -ENOMEM on connect with zero-length service name
When service_name_len is 0, kmemdup() returns ZERO_SIZE_PTR which
passes the NULL check, causing nfc_llcp_send_connect() to attempt
building a zero-length service name TLV and fail with -ENOMEM.
Fix by setting service_name to NULL directly when service_name_len is 0.
Fixes: d646960f7986 ("NFC: Initial LLCP support")
Signed-off-by: Ömer Mete Kaya <omermetekaya0@gmail.com>
Link: https://patch.msgid.link/20260909122029.34081-1-omermetekaya0@gmail.com
Signed-off-by: David Heidelberg <david@ixit.cz>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
