]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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:26:10 +0000 (11:26 -0700)
commit3221f151902a4de1bd3dc5fc46b3befb0457fdb8
tree3003802c0f0e90d066622998912e3cb5ddfaf42c
parentfddc34f963f9b9976a840606ef294d23aef4e783
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