Skip to content
Commit fda11e61 authored by Len Brown's avatar Len Brown
Browse files

dell-wmi, hp-wmi, msi-wmi: check wmi_get_event_data() return value



When acpi_evaluate_object() is passed ACPI_ALLOCATE_BUFFER,
the caller must kfree the returned buffer if AE_OK is returned.

The callers of wmi_get_event_data() pass ACPI_ALLOCATE_BUFFER,
and thus must check its return value before accessing
or kfree() on the buffer.

Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent f2772575
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment