diff options
author | Moore, Eric <Eric.Moore@lsil.com> | 2006-02-03 01:19:44 +0100 |
---|---|---|
committer | <jejb@mulgrave.il.steeleye.com> | 2006-02-04 23:32:32 +0100 |
commit | 5f07e2499d629045f7f8a60a5b442792f08732cb (patch) | |
tree | a616bec57aece4c528ced7a0f130dd5f62446f28 /drivers/message/fusion/mptctl.c | |
parent | [SCSI] fusion - mptctl - Event Log Fix (diff) | |
download | linux-5f07e2499d629045f7f8a60a5b442792f08732cb.tar.xz linux-5f07e2499d629045f7f8a60a5b442792f08732cb.zip |
[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>
Diffstat (limited to 'drivers/message/fusion/mptctl.c')
-rw-r--r-- | drivers/message/fusion/mptctl.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/message/fusion/mptctl.c b/drivers/message/fusion/mptctl.c index b603fb8e604b..be5fcd8db63b 100644 --- a/drivers/message/fusion/mptctl.c +++ b/drivers/message/fusion/mptctl.c @@ -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 |