linux/drivers/platform
Thorsten Blum 2d5821579d
platform/x86: dell-wmi-sysman: Clean up security buffer helpers
In calculate_security_buffer(), call strlen() once and use ALIGN() to
round up to an even size.

In populate_security_buffer(), also avoid recomputing strlen(), rename
the u32 pointer from 'seclen' to 'seclenp' to avoid confusion with the
new length variable, and drop the memcpy() guard since calling it with
size 0 is a no-op and therefore safe.

Use 'const char *' for the read-only source string in both helpers.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260331160310.608857-3-thorsten.blum@linux.dev
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
History 2026-04-07 17:22:42 +03:00
..
arm64 Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
chrome Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
cznic treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
goldfish Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
loongarch platform/loongarch: laptop: Unregister generic_sub_drivers on exit 2025-06-07 11:37:15 +08:00
mellanox platform/mellanox: nvsw-sn2201: Drop unused include 2026-03-23 11:55:32 +02:00
mips platform: mips: cpu_hwmon: Disable driver on unsupported hardware 2024-06-21 10:22:10 +02:00
olpc platform/olpc: olpc-xo175-ec: Fix overflow error message to print inlen 2026-03-23 14:49:00 +02:00
raspberrypi Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
surface platform/surface: hotplug: Correct inclusion for GPIO APIs 2026-03-23 11:55:09 +02:00
wmi Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
x86 platform/x86: dell-wmi-sysman: Clean up security buffer helpers 2026-04-07 17:22:42 +03:00
Kconfig platform-drivers-x86 for v6.19-1 2025-12-10 06:38:17 +09:00
Makefile platform-drivers-x86 for v6.19-1 2025-12-10 06:38:17 +09:00