diff options
| author | 2022-08-14 01:08:43 +0300 | |
|---|---|---|
| committer | 2022-08-22 06:56:45 +0000 | |
| commit | 6ad4194d6a1e1d11b285989cd648ef695b4a93c0 (patch) | |
| tree | c4b38487ea69a8b39b1d4ca205e7c5cac5d1d28c /tools/scripts/ssh:/git@git.zx2c4.com/git:/git.zx2c4.com | |
| parent | platform/chrome: cros_ec_typec: Get retimer handle (diff) | |
| download | linux-dev-6ad4194d6a1e1d11b285989cd648ef695b4a93c0.tar.xz linux-dev-6ad4194d6a1e1d11b285989cd648ef695b4a93c0.zip | |
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/scripts/ssh:/git@git.zx2c4.com/git:/git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
