diff options
author | Michael Richardson <mcr@sandelman.ottawa.on.ca> | 2006-01-09 10:04:51 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-13 20:26:12 +0100 |
commit | 9c08a938ce5a3e1c9d5f764dc6ae844cb1af76ff (patch) | |
tree | 9bd0a984b2e5466454e2633783786a516fe14484 /drivers/input/serio | |
parent | [PATCH] platform-device-del typo fix (diff) | |
download | linux-9c08a938ce5a3e1c9d5f764dc6ae844cb1af76ff.tar.xz linux-9c08a938ce5a3e1c9d5f764dc6ae844cb1af76ff.zip |
[PATCH] device_shutdown can loop if the driver frees itself
This patch changes device_shutdown() to use the newly introduced safe
reverse list traversal. We experienced loops on system reboot if we had
removed and re-inserted our device from the device list.
We noticed this problem on PPC405. Our PCI IDE device comes and goes a lot.
Our hypothesis was that there was a loop caused by the driver->shutdown
freeing memory. It is possible that we do something wrong as well, but
being unable to reboot is kind of nasty.
Signed-off-by: Michael Richardson <mcr@marajade.sandelman.ca>
Cc: Patrick Mochel <mochel@digitalimplant.org>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/input/serio')
0 files changed, 0 insertions, 0 deletions