summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorLuka Gejak <luka.gejak@linux.dev>2026-04-15 10:56:38 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-04-27 05:01:55 -0600
commitf051bc718b00446709e00e6b54bd6b4e2d4ce447 (patch)
tree8a620f3384e0086c2c213f1b84faa685eb346589 /tools/perf/scripts/python/task-analyzer.py
parent016f33c1a9a946de46ad8e0d06e542e07e944836 (diff)
staging: rtl8723bs: clean up memcpy() in rtw_check_bcn_info
Move the ssid memcpy() inside the ie null-check to avoid calling it with a NULL-derived pointer (p + 2) when the ie is missing. While the kernel handles 0-length memcpy() safely as a no-op, keeping the call outside the check is confusing and poor practice. This change improves code readability. Signed-off-by: Luka Gejak <luka.gejak@linux.dev> Reviewed-by: Dan Carpenter <error27@gmail.com> Link: https://patch.msgid.link/20260415085638.6427-1-luka.gejak@linux.dev Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions