summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorMuhammad Bilal <meatuni001@gmail.com>2026-10-07 18:47:11 +0500
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2026-10-14 16:08:13 +0300
commitfd7545cd398adc09ec2f9b603d72671560ee6bf9 (patch)
tree7e4d22980725112f99e030e041422204b0a5a35f /tools/perf/scripts/python/bin
parentf2769668959f6411ac69e83080a240f8a8785e05 (diff)
platform/x86: hp-bioscfg: fix oops on short integer attribute buffer
hp_populate_integer_elements_from_buffer() ignores the return value of hp_get_string_from_buffer(). When fewer than 2 bytes are left in the buffer, dst_size is 0, kcalloc() returns ZERO_SIZE_PTR and hp_get_string_from_buffer() fails without writing to it, so kstrtoint() faults on address 0x10. Return the error instead. Compile tested only. Fixes: 6f2c06d5a467 ("platform/x86: hp-bioscfg: int-attributes") Signed-off-by: Muhammad Bilal <meatuni001@gmail.com> Link: https://lore.kernel.org/all/20261007134711.473857-1-meatuni001@gmail.com/ Link: https://patch.msgid.link/20261007134711.473857-10-meatuni001@gmail.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions