diff options
author | adam radford <aradford@gmail.com> | 2012-01-06 20:02:34 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-01-16 02:27:46 -0500 |
commit | 882be7c3be72f6d72ae7a81e707154287ea5d289 (patch) | |
tree | 16a1c2613cbcc51067760c4f6e6ff1a7bf5cf5e0 /drivers/scsi/megaraid | |
parent | 0d4c24cc1bf62e75fdb31e73c68daa50e0877564 (diff) |
[SCSI] megaraid_sas: mask off flags in ioctl path
Mask off flags in the ioctl path to prevent memory scribble with older MegaCLI
versions.
Signed-off-by: Adam Radford <aradford@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/megaraid')
-rw-r--r-- | drivers/scsi/megaraid/megaraid_sas_base.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index 29a994f9c4f1..2bdc70754b14 100644 --- a/drivers/scsi/megaraid/megaraid_sas_base.c +++ b/drivers/scsi/megaraid/megaraid_sas_base.c | |||
@@ -4773,6 +4773,8 @@ megasas_mgmt_fw_ioctl(struct megasas_instance *instance, | |||
4773 | memcpy(cmd->frame, ioc->frame.raw, 2 * MEGAMFI_FRAME_SIZE); | 4773 | memcpy(cmd->frame, ioc->frame.raw, 2 * MEGAMFI_FRAME_SIZE); |
4774 | cmd->frame->hdr.context = cmd->index; | 4774 | cmd->frame->hdr.context = cmd->index; |
4775 | cmd->frame->hdr.pad_0 = 0; | 4775 | cmd->frame->hdr.pad_0 = 0; |
4776 | cmd->frame->hdr.flags &= ~(MFI_FRAME_IEEE | MFI_FRAME_SGL64 | | ||
4777 | MFI_FRAME_SENSE64); | ||
4776 | 4778 | ||
4777 | /* | 4779 | /* |
4778 | * The management interface between applications and the fw uses | 4780 | * The management interface between applications and the fw uses |