Skip to contentSkip to conversation

megaraid_sas : bytewise or should be done on native endian variables

PATCH RESEND In review [email protected] 3 participants 3 messages Apr 20, 2015 – Apr 21, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 15/18 megaraid_sas : bytewise or should be done on native endian variables

---
 drivers/scsi/megaraid/megaraid_sas_fusion.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/scsi/megaraid/megaraid_sas_fusion.c +3 -1
index 7d34fe8..17ec153 100644
@@ -651,7 +651,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;
Signature · 1 line
1.7.1
Reviewed-by on v1 15/18
#1 lore raw
Quoted 5 lines · On 04/20/2015 02:34 PM, [email protected] wrote:
---
 drivers/scsi/megaraid/megaraid_sas_fusion.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Cheers,

Hannes

Signature · 8 lines
Dr. Hannes Reinecke		      zSeries & Storage
[email protected]			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html