From: Len Brown Date: Sun, 27 Dec 2009 04:02:24 +0000 (-0500) Subject: dell-wmi, hp-wmi, msi-wmi: check wmi_get_event_data() return value X-Git-Tag: v2.6.33-rc3~32^2~4^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fda11e61ff8a4e3a8ebbd434e46560b67cc0ca9d;p=pandora-kernel.git 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: Len Brown --- Reading git-diff-tree failed