aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorRustam Subkhankulov <[email protected]>2022-08-14 01:08:43 +0300
committerTzung-Bi Shih <[email protected]>2022-08-22 06:56:45 +0000
commit6ad4194d6a1e1d11b285989cd648ef695b4a93c0 (patch)
treec4b38487ea69a8b39b1d4ca205e7c5cac5d1d28c /net/lapb/lapb_timer.c
parent1a8912caba02522f612d465a4849ce98915b96ad (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