: [scsi_dh] Initialize lun_state in check_ownership()
PATCH 1/1 : [scsi_dh] Initialize lun_state in check_ownership()
lun_state need to be initialized inside check_ownership().
Signed-off-by Chandra Seetharaman <[email protected]>
--- drivers/scsi/device_handler/scsi_dh_rdac.c | 1 + 1 file changed, 1 insertion(+)
drivers/scsi/device_handler/scsi_dh_rdac.c +1 -0
@@ -386,6 +386,7 @@ static int check_ownership(struct scsi_dint err;struct c9_inquiry *inqp; + h->lun_state =RDAC_LUN_UNOWNED ; err =submit_inquiry (sdev,0xC9 ,sizeof (struct c9_inquiry ), h);if (err ==SCSI_DH_OK ) { inqp = &h->inq.c9;