mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
[SCSI] fusion - mptctl -sense width fix
Bug fix for correctly setting sense width for the MPTCOMMAND ioctl. Signed-off-by: Eric Moore <Eric.Moore@lsil.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
5b5ef4f617
commit
5f07e2499d
@ -1839,7 +1839,9 @@ mptctl_do_mpt_command (struct mpt_ioctl_command karg, void __user *mfPtr)
|
||||
goto done_free_mem;
|
||||
}
|
||||
|
||||
pScsiReq->MsgFlags = mpt_msg_flags();
|
||||
pScsiReq->MsgFlags &= ~MPI_SCSIIO_MSGFLGS_SENSE_WIDTH;
|
||||
pScsiReq->MsgFlags |= mpt_msg_flags();
|
||||
|
||||
|
||||
/* verify that app has not requested
|
||||
* more sense data than driver
|
||||
@ -1921,7 +1923,9 @@ mptctl_do_mpt_command (struct mpt_ioctl_command karg, void __user *mfPtr)
|
||||
int scsidir = MPI_SCSIIO_CONTROL_READ;
|
||||
int dataSize;
|
||||
|
||||
pScsiReq->MsgFlags = mpt_msg_flags();
|
||||
pScsiReq->MsgFlags &= ~MPI_SCSIIO_MSGFLGS_SENSE_WIDTH;
|
||||
pScsiReq->MsgFlags |= mpt_msg_flags();
|
||||
|
||||
|
||||
/* verify that app has not requested
|
||||
* more sense data than driver
|
||||
|
Loading…
Reference in New Issue
Block a user