diff options
author | Alok Tiwari <alok.a.tiwari@oracle.com> | 2025-07-19 01:07:42 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-07-24 11:29:57 +0200 |
commit | a8934352ba01081c51d2df428e9d540aae0e88b5 (patch) | |
tree | 5259d887180126e61a4a04a7962e158b34a677e8 /scripts/gdb/linux/slab.py | |
parent | a713222906e4f77b5fb1b5346d4f5de1adc639b4 (diff) |
staging: nvec: Fix incorrect null termination of battery manufacturer
The battery manufacturer string was incorrectly null terminated using
bat_model instead of bat_manu. This could result in an unintended
write to the wrong field and potentially incorrect behavior.
fixe the issue by correctly null terminating the bat_manu string.
Fixes: 32890b983086 ("Staging: initial version of the nvec driver")
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20250719080755.3954373-1-alok.a.tiwari@oracle.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/slab.py')
0 files changed, 0 insertions, 0 deletions