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-07-31 15:39:39 -07:00
2007-04-01 10:10:04 -05:00
2006-09-12 17:12:31 -05:00
2006-09-12 17:12:31 -05:00
2007-05-06 09:33:11 -05: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
2006-08-06 15:59:26 -05:00
2006-11-15 16:41:27 -06:00
2006-09-12 17:12:31 -05: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-05-31 17:30:04 -04:00
2007-10-12 14:37:35 -04:00
2006-09-12 17:12:31 -05:00
2007-10-12 14:52:04 -04:00
2007-10-12 14:52:46 -04:00
2007-07-18 11:16:32 -05: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-07-14 19:12:15 -05:00
2007-10-12 14:52:46 -04:00
2006-03-23 07:38:09 -08:00
2007-07-31 10:44:01 -05:00
2007-07-31 10:44:01 -05:00
2007-05-31 17:30:04 -04:00
2006-11-15 16:43:50 -06:00