Re: [PATCH] platform/x86: dell-smbios-wmi: Add missing kfree in error-exit from run_smbios_call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 26, 2021 at 04:08:22PM +0200, Hans de Goede wrote:
> As pointed out be Kees Cook if we return -EIO because the
> obj->type != ACPI_TYPE_BUFFER, then we must kfree the
> output buffer before the return.
> 
> Fixes: 1a258e670434 ("platform/x86: dell-smbios-wmi: Add new WMI dispatcher driver")
> Reported-by: Kees Cook <keescook@xxxxxxxxxxxx>
> Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>

Excellent! Thanks for doing this. :)

-Kees

-- 
Kees Cook



[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux