diff options
author | Christoph Hellwig <hch@lst.de> | 2015-04-23 14:03:39 +0300 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-05-25 18:46:30 +0300 |
commit | 48433bd77b386bbf0abe6f065fe7cd021564651c (patch) | |
tree | d722d2dc5a3baadbb79fe47da280def6be28461f /drivers/scsi/megaraid | |
parent | 48100b0ed0e5a34873828c0cdae8708804d57ee5 (diff) | |
download | linux-48433bd77b386bbf0abe6f065fe7cd021564651c.tar.xz |
megaraid_sas : bytewise or should be done on native endian variables
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sumit Saxena <sumit.saxena@avagotech.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/megaraid')
-rw-r--r-- | drivers/scsi/megaraid/megaraid_sas_fusion.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c index b995774d601e..487cd343147e 100644 --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c @@ -621,7 +621,9 @@ megasas_ioc_init_fusion(struct megasas_instance *instance) frame_hdr = &cmd->frame->hdr; frame_hdr->cmd_status = 0xFF; - frame_hdr->flags |= cpu_to_le16(MFI_FRAME_DONT_POST_IN_REPLY_QUEUE); + frame_hdr->flags = cpu_to_le16( + le16_to_cpu(frame_hdr->flags) | + MFI_FRAME_DONT_POST_IN_REPLY_QUEUE); init_frame->cmd = MFI_CMD_INIT; init_frame->cmd_status = 0xFF; |