WMI: properly cleanup devices to avoid crashes
commitcf541bb3f2532e7493720a208021e43b85156870
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 7 Sep 2011 22:00:02 +0000 (7 15:00 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:36:09 +0000 (11 09:36 -0800)
treed98f26c92587c96280e205d9670724d2d6a5ebba
parent761f2b411806f70dfaa3d248b4182e7ba154efd4
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