Linus Torvalds c596cc46ba scsi/gdth: fix crash in gdth_timeout if no gdth controllers found
If the gdth module is loaded (or compiled in), the gdth_timeout function
gets started even if no actual gdth controllers are found b the probing.

That ends up not only being unnecessary, but also causes a crash due to
the function blindly just trying to pick the first entry off the
"gdth_instances" list, and accessing it - which obviously doesn't work
if the list is empty!

Noticed by Ingo Molnar.

Tested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-15 12:46:16 -07:00
..
2007-10-12 14:54:29 -04:00
2007-10-12 14:51:56 -04:00
2007-10-12 14:54:42 -04:00
2007-10-12 14:49:22 -04:00
2007-10-12 14:54:33 -04:00
2007-10-12 14:55:35 -04:00
2007-10-12 14:51:44 -04:00
2007-10-12 14:51:44 -04:00
2007-10-12 14:37:35 -04:00
2007-10-12 14:52:04 -04:00
2007-10-12 14:52:46 -04:00
2007-10-12 14:46:51 -04:00
2007-10-12 14:52:46 -04:00
2007-10-12 14:52:46 -04:00
2007-10-12 14:52:46 -04:00