ses: show devices for enclosures with no page 7
authorJohn Hughes <john@Calva.COM>
Wed, 4 Nov 2009 18:01:22 +0000 (19:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 30 Apr 2011 14:53:25 +0000 (16:53 +0200)
commit9a293950f9eb64c0f230a8508584ad8a04abd278
tree79757f086ad85c8756399a28e28a23b269e3e87a
parent6daf19a87eaeaa9f02942064f0299cd649539a44
ses: show devices for enclosures with no page 7

commit 877a55979c189c590e819a61cbbe2b7947875f17 upstream.

enclosure page 7 gives us the "pretty" names of the enclosure slots.
Without a page 7, we can still use the enclosure code as long as we
make up numeric names for the slots. Unfortunately, the current code
fails to add any devices because the check for page 10 is in the wrong
place if we have no page 7.  Fix it so that devices show up even if
the enclosure has no page 7.

Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/ses.c