diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-15 12:46:16 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-15 12:46:16 -0700 |
commit | c596cc46ba1c5769866efe586daff3422bc31afe (patch) | |
tree | 080f0fc2fc91d6b37f1cf2992bab3d6720c748e1 /drivers/scsi/aic7xxx/scsi_message.h | |
parent | f4921aff5b174349bc36551f142a5dbac782ea3f (diff) |
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>
Diffstat (limited to 'drivers/scsi/aic7xxx/scsi_message.h')
0 files changed, 0 insertions, 0 deletions