]> www.infradead.org Git - users/jedix/linux-maple.git/commit
WMI: properly cleanup devices to avoid crashes
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 7 Sep 2011 22:00:02 +0000 (15:00 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:17:57 +0000 (11:17 -0800)
commit2f475f9780cb0007253a0479d953a333978bdbf0
treed3a78d9f59aa59d332729666f6bbf816fdedccaa
parent2a0b4459533627546f81aa3097efc063b47b50ec
WMI: properly cleanup devices to avoid crashes

commit 023b9565972a4a5e0f01b9aa32680af6e9b5c388 upstream.

We need to remove devices that we destroy from the list, otherwise
we'll crash if there are more than one "_WDG" methods in DSDT.

This fixes https://bugzilla.kernel.org/show_bug.cgi?id=32052

Tested-by: Ilya Tumaykin <librarian_rus@yahoo.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Acked-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/platform/x86/wmi.c