mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: scameron@beardog.cca.cpqcorp.net
To: axboe@kernel.dk, linux-kernel@vger.kernel.org
Cc: mikem@beardog.cca.cpqcorp.net, scameron@beardog.cca.cpqcorp.net
Subject: [patch] cciss: Fix regression that no device nodes are created if no logical drives are configured.
Date: Mon, 9 Jun 2008 13:46:49 -0500	[thread overview]
Message-ID: <20080609184649.GV8065@beardog.cca.cpqcorp.net> (raw)



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 <scameron@beardog.cca.cpqcorp.net>

---

 drivers/block/cciss.c |    4 ++++
 1 files changed, 4 insertions(+)

diff -puN drivers/block/cciss.c~cciss_fix_cxd0_missing_if_no_drives drivers/block/cciss.c
--- linux-2.6.26rc5/drivers/block/cciss.c~cciss_fix_cxd0_missing_if_no_drives	2008-06-09 09:27:37.000000000 -0500
+++ linux-2.6.26rc5-root/drivers/block/cciss.c	2008-06-09 12:33:07.000000000 -0500
@@ -3535,6 +3535,10 @@ static int __devinit cciss_init_one(stru
 	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:
_

             reply	other threads:[~2008-06-09 18:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-09 18:46 scameron [this message]
2008-06-09 19:59 ` Mike Miller (OS Dev)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080609184649.GV8065@beardog.cca.cpqcorp.net \
    --to=scameron@beardog.cca.cpqcorp.net \
    --cc=axboe@kernel.dk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikem@beardog.cca.cpqcorp.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®