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-07-31 15:39:39 -07:00
2007-08-22 19:52:46 -07:00
2007-07-21 18:37:12 -07:00
2007-10-14 12:41:51 -07:00
2007-10-13 23:56:33 +02:00
2007-10-13 09:41:03 -07:00
2007-10-14 16:46:44 -07:00
2007-07-31 15:39:37 -07:00
2007-10-14 08:53:33 -07:00
2007-07-26 11:35:17 -07:00