SCSI: dc395x: uninitialized variable in device_alloc()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 11 Feb 2013 19:03:18 +0000 (22:03 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Mar 2013 18:32:04 +0000 (11:32 -0700)
commitc9ad62366468c20381217476c1ebc5cc13ffcbbc
tree217fdb5824098505ec391f7a2175207fd70e02b9
parent8b0b58069148d9540e70af1d4963b2fe515efe89
SCSI: dc395x: uninitialized variable in device_alloc()

commit 208afec4f3be8c51ad6eebe6611dd6d2ad2fa298 upstream.

This bug was introduced back in bitkeeper days in 2003.  We use
"dcb->dev_mode" before it has been initialized.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/dc395x.c