From: Linus Torvalds Date: Mon, 15 Oct 2007 19:46:16 +0000 (-0700) Subject: scsi/gdth: fix crash in gdth_timeout if no gdth controllers found X-Git-Tag: v2.6.24-rc1~1284 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c596cc46ba1c5769866efe586daff3422bc31afe;p=pandora-kernel.git 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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed