Re: [PATCH] platform/chrome: fix double-free in chromeos_laptop_prepare()
From: patchwork-bot+chrome-platform
Date: Tue Aug 23 2022 - 22:20:23 EST
Hello:
This patch was applied to chrome-platform/linux.git (for-next)
by Tzung-Bi Shih <tzungbi@xxxxxxxxxx>:
On Sun, 14 Aug 2022 01:08:43 +0300 you wrote:
> 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.
>
> [...]
Here is the summary with links:
- platform/chrome: fix double-free in chromeos_laptop_prepare()
https://git.kernel.org/chrome-platform/c/6ad4194d6a1e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html