]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] hpsa: fix problem that OBDR devices are not detected
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Tue, 9 Aug 2011 13:17:30 +0000 (08:17 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 26 Aug 2011 19:49:04 +0000 (12:49 -0700)
commitf689bc8e58a6bfb9be895414c5c72d5d0250ac58
tree18f4f39869347d5ea5b61d7f7fe4503663ba2e16
parentbd44033a3aaa7bc8e2d7d557c6af0338370c144c
[SCSI] hpsa: fix problem that OBDR devices are not detected

The test to detect OBDR ("One Button Disaster Recovery")
cd-rom devices was comparing against uninitialized data.

Fixed by moving the test for the device to where the
inquiry data is collected, and uninitialized variable
altogether as it wasn't really being used.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Cc: stable@kernel.org
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/hpsa.c