aboutsummaryrefslogtreecommitdiff
path: root/include/clocksource/pxa.h
diff options
context:
space:
mode:
authorAndy Lutomirski2015-11-25 08:24:42 -0800
committerDarren Hart (VMware)2017-06-06 10:15:18 -0700
commita1c31bcd5772b13b39b028126fa9de918c36cf26 (patch)
treed00d06de011ba692119731a7cf68e7edd4bf7065 /include/clocksource/pxa.h
parent844af950da946cfab227a04b950614da04cb6275 (diff)
platform/x86: wmi: Fix error handling when creating devices
We have two memory leaks. If guid_already_parsed returned true, we leak the wmi_block. If wmi_create_device failed, we leak the device. Simplify the logic and fix both of them. Signed-off-by: Andy Lutomirski <luto@kernel.org> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Mario Limonciello <mario_limonciello@dell.com> Cc: Pali Rohár <pali.rohar@gmail.com> Cc: linux-kernel@vger.kernel.org Cc: platform-driver-x86@vger.kernel.org Cc: linux-acpi@vger.kernel.org Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'include/clocksource/pxa.h')
0 files changed, 0 insertions, 0 deletions