aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/message/fusion/mptctl.c8
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)
1839 goto done_free_mem; 1839 goto done_free_mem;
1840 } 1840 }
1841 1841
1842 pScsiReq->MsgFlags = mpt_msg_flags(); 1842 pScsiReq->MsgFlags &= ~MPI_SCSIIO_MSGFLGS_SENSE_WIDTH;
1843 pScsiReq->MsgFlags |= mpt_msg_flags();
1844
1843 1845
1844 /* verify that app has not requested 1846 /* verify that app has not requested
1845 * more sense data than driver 1847 * more sense data than driver
@@ -1921,7 +1923,9 @@ mptctl_do_mpt_command (struct mpt_ioctl_command karg, void __user *mfPtr)
1921 int scsidir = MPI_SCSIIO_CONTROL_READ; 1923 int scsidir = MPI_SCSIIO_CONTROL_READ;
1922 int dataSize; 1924 int dataSize;
1923 1925
1924 pScsiReq->MsgFlags = mpt_msg_flags(); 1926 pScsiReq->MsgFlags &= ~MPI_SCSIIO_MSGFLGS_SENSE_WIDTH;
1927 pScsiReq->MsgFlags |= mpt_msg_flags();
1928
1925 1929
1926 /* verify that app has not requested 1930 /* verify that app has not requested
1927 * more sense data than driver 1931 * more sense data than driver