]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
megaraid_sas : bytewise or should be done on native endian variables
authorChristoph Hellwig <hch@lst.de>
Thu, 23 Apr 2015 11:03:39 +0000 (16:33 +0530)
committerJames Bottomley <JBottomley@Odin.com>
Mon, 25 May 2015 15:46:30 +0000 (08:46 -0700)
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>
drivers/scsi/megaraid/megaraid_sas_fusion.c

index b995774d601ecb0a3305a76dcd3fb878969095c5..487cd343147e21e094bb844204534dd5982b762f 100644 (file)
@@ -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;