RE: [PATCH 06/10] megaraid_sas: bytewise or should be done on native endian variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>-----Original Message-----
>From: Christoph Hellwig [mailto:hch@xxxxxx]
>Sent: Saturday, January 10, 2015 10:41 PM
>To: Sumit.Saxena@xxxxxxxxxxxxx; kashyap.desai@xxxxxxxxxxxxx
>Cc: martin.petersen@xxxxxxxxxx; linux-scsi@xxxxxxxxxxxxxxx
>Subject: [PATCH 06/10] megaraid_sas: bytewise or should be done on native
>endian variables
>
>Signed-off-by: Christoph Hellwig <hch@xxxxxx>
>---
> drivers/scsi/megaraid/megaraid_sas_fusion.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
>diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c
>b/drivers/scsi/megaraid/megaraid_sas_fusion.c
>index 82439f9..b1e053b 100644
>--- a/drivers/scsi/megaraid/megaraid_sas_fusion.c
>+++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c
>@@ -673,7 +673,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;

Acked-by: Sumit Saxena <sumit.saxena@xxxxxxxxxxxxx>

>--
>1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux