cciss: Fix regression that no device nodes are created if no logical drives are configured.
PATCH 1/1 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 <[email protected]>
---
drivers/block/cciss.c | 4 ++++ 1 files changed, 4 insertions(+)
drivers/block/cciss.c renamed from drivers/block/cciss.c~cciss_fix_cxd0_missing_if_no_drives +4 -0
@@ -3535,6 +3535,10 @@ static int __devinit cciss_init_one(strufor (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:
_
Quoted 6 lines · On Mon, Jun 09, 2008 at 01:46:49PM -0500, [email protected]…
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 <[email protected]>
Acked-by Mike Miller <[email protected]>
Quoted 21 lines
---
drivers/block/cciss.c | 4 ++++ 1 files changed, 4 insertions(+)diff -puN
drivers/block/cciss.c~cciss_fix_cxd0_missing_if_no_drivesdrivers/block/cciss.cdrivers/block/cciss.c renamed from drivers/block/cciss.c~cciss_fix_cxd0_missing_if_no_drives +4
-0@@ -3535,6 +3535,10 @@ static int __devinit cciss_init_one(strufor (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:_