From c938f4305d3db48b2f30f6d00601e60a2de2cd28 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 15 Oct 2007 12:46:16 -0700 Subject: [PATCH] --- yaml --- r: 69304 b: refs/heads/master c: c596cc46ba1c5769866efe586daff3422bc31afe h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/scsi/gdth.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index ca557360a2ce..bcb324dde59a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f4921aff5b174349bc36551f142a5dbac782ea3f +refs/heads/master: c596cc46ba1c5769866efe586daff3422bc31afe diff --git a/trunk/drivers/scsi/gdth.c b/trunk/drivers/scsi/gdth.c index e8010a702e73..3ac080ee6e2f 100644 --- a/trunk/drivers/scsi/gdth.c +++ b/trunk/drivers/scsi/gdth.c @@ -5213,6 +5213,10 @@ static int __init gdth_init(void) #endif /* CONFIG_PCI */ TRACE2(("gdth_detect() %d controller detected\n", gdth_ctr_count)); + + if (list_empty(&gdth_instances)) + return -ENODEV; + #ifdef GDTH_STATISTICS TRACE2(("gdth_detect(): Initializing timer !\n")); init_timer(&gdth_timer);