diff options
author | Rustam Subkhankulov <[email protected]> | 2022-08-14 01:08:43 +0300 |
---|---|---|
committer | Tzung-Bi Shih <[email protected]> | 2022-08-22 06:56:45 +0000 |
commit | 6ad4194d6a1e1d11b285989cd648ef695b4a93c0 (patch) | |
tree | c4b38487ea69a8b39b1d4ca205e7c5cac5d1d28c /net/lapb/lapb_timer.c | |
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 <[email protected]>
Fixes: 5020cd29d8bf ("platform/chrome: chromeos_laptop - supply properties for ACPI devices")
Reviewed-by: Dmitry Torokhov <[email protected]>
Signed-off-by: Tzung-Bi Shih <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions