From: Stephen M. Cameron Date: Fri, 4 Jul 2008 16:59:40 +0000 (-0700) Subject: cciss: fix regression that no device nodes are created if no logical drives are confi... X-Git-Tag: v2.6.26-rc9~39 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=77b96bd7e5ee0b44aed1b77fef5949bc19e8301f;p=safe%2Fjmp%2Flinux-2.6 cciss: fix regression that no device nodes are created if no logical drives are configured. Fix regression in cciss driver that if no logical drives are configured, no device nodes at all get created. Signed-off-by: Stephen M. Cameron Acked-by: Mike Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 5f1e1cc..f552105 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c @@ -3546,6 +3546,10 @@ static int __devinit cciss_init_one(struct pci_dev *pdev, for (j = 0; j <= hba[i]->highest_lun; j++) add_disk(hba[i]->gendisk[j]); + /* we must register the controller even if no disks exist */ + if (hba[i]->highest_lun == -1) + add_disk(hba[i]->gendisk[0]); + return 1; clean4: