summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2021-08-26 16:08:22 +0200
committerHans de Goede <hdegoede@redhat.com>2021-08-26 16:09:43 +0200
commit0487d4fc42d7f31a56cfd9e2237f9ebd889e6112 (patch)
treee13e56c0d08fb682952301ea3ad8de347d6d803b /drivers/misc
parentfb49d9946f96081f9a05d8f305b3f40285afe4a9 (diff)
platform/x86: dell-smbios-wmi: Add missing kfree in error-exit from run_smbios_call
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@chromium.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20210826140822.71198-1-hdegoede@redhat.com
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions