diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-12-16 14:09:44 +0100 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-01-07 21:27:07 +0100 |
| commit | 1d97b8e3bfbb4fec99054cb5c413652a0ccfdeec (patch) | |
| tree | a4d28808b2c9948890c498f7a479c31a5e4c1482 /rust/alloc | |
| parent | 9ace4753a5202b02191d54e9fdf7f9e3d02b85eb (diff) | |
thermal: core: Use strnlen() in thermal_zone_device_register_with_trips()
Replace strlen() with the safer strnlen() and calculate the length of
the thermal zone name 'type' only once.
No functional changes.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
[ rjw: Subject edits ]
Link: https://patch.msgid.link/20251216130943.40180-2-thorsten.blum@linux.dev
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'rust/alloc')
0 files changed, 0 insertions, 0 deletions
