WMI: properly cleanup devices to avoid crashes
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 7 Sep 2011 22:00:02 +0000 (15:00 -0700)
committerMatthew Garrett <mjg@redhat.com>
Mon, 24 Oct 2011 14:52:40 +0000 (16:52 +0200)
commit023b9565972a4a5e0f01b9aa32680af6e9b5c388
tree1d3260147d92bd3feddf077564cbc0029f758e51
parent349d594be45bdc7a86a08385f2f4f49d08ab68dd
WMI: properly cleanup devices to avoid crashes

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>
Cc: stable@kernel.org
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Acked-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/wmi.c