diff options
author | Rustam Subkhankulov <subkhankulov@ispras.ru> | 2022-08-14 01:08:43 +0300 |
---|---|---|
committer | Tzung-Bi Shih <tzungbi@kernel.org> | 2022-08-22 06:56:45 +0000 |
commit | 6ad4194d6a1e1d11b285989cd648ef695b4a93c0 (patch) | |
tree | c4b38487ea69a8b39b1d4ca205e7c5cac5d1d28c /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 1a8912caba02522f612d465a4849ce98915b96ad (diff) |
platform/chrome: fix double-free in chromeos_laptop_prepare()
If chromeos_laptop_prepare_i2c_peripherals() fails after allocating memory
for 'cros_laptop->i2c_peripherals', this memory is freed at 'err_out' label
and nonzero value is returned. Then chromeos_laptop_destroy() is called,
resulting in double-free error.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Signed-off-by: Rustam Subkhankulov <subkhankulov@ispras.ru>
Fixes: 5020cd29d8bf ("platform/chrome: chromeos_laptop - supply properties for ACPI devices")
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20220813220843.2373004-1-subkhankulov@ispras.ru
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions