mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
SCSI: dc395x: uninitialized variable in device_alloc()
commit 208afec4f3
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>
This commit is contained in:
parent
f8ac697423
commit
76284215d0
1 changed files with 1 additions and 1 deletions
|
@ -3747,13 +3747,13 @@ static struct DeviceCtlBlk *device_alloc(struct AdapterCtlBlk *acb,
|
|||
dcb->max_command = 1;
|
||||
dcb->target_id = target;
|
||||
dcb->target_lun = lun;
|
||||
dcb->dev_mode = eeprom->target[target].cfg0;
|
||||
#ifndef DC395x_NO_DISCONNECT
|
||||
dcb->identify_msg =
|
||||
IDENTIFY(dcb->dev_mode & NTC_DO_DISCONNECT, lun);
|
||||
#else
|
||||
dcb->identify_msg = IDENTIFY(0, lun);
|
||||
#endif
|
||||
dcb->dev_mode = eeprom->target[target].cfg0;
|
||||
dcb->inquiry7 = 0;
|
||||
dcb->sync_mode = 0;
|
||||
dcb->min_nego_period = clock_period[period_index];
|
||||
|
|
Loading…
Reference in a new issue