]> git.hungrycats.org Git - linux/commit
[PATCH] Driver core: Fix OOPS in device_platform_unregister
authorDmitry Torokhov <dtor_core@ameritech.net>
Wed, 14 Jul 2004 09:09:44 +0000 (02:09 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 14 Jul 2004 09:09:44 +0000 (02:09 -0700)
commitb6c1cfc66e1baff2bd698296dfe25d7edf21c30b
tree546d239c59b5606f0f229deddda244c508b69f01
parent2e4d27c4f4e427c4d08fa458f6b6f66b5afd7797
[PATCH] Driver core: Fix OOPS in device_platform_unregister

Driver core: platform_device_unregister should release resources first
             and only then call device_unregister, otherwise if there
             are no more references to the device it will be freed and
             the fucntion will try to access freed memory.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/base/platform.c