From: Christoph Hellwig Date: Thu, 23 Apr 2015 11:03:39 +0000 (+0530) Subject: megaraid_sas : bytewise or should be done on native endian variables X-Git-Tag: v4.2-rc1~147^2~132 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48433bd77b386bbf0abe6f065fe7cd021564651c;p=platform%2Fkernel%2Flinux-exynos.git megaraid_sas : bytewise or should be done on native endian variables Signed-off-by: Christoph Hellwig Signed-off-by: Sumit Saxena Reviewed-by: Hannes Reinecke Reviewed-by: Tomas Henzl Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c index b995774..487cd34 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;