Patchwork [net-next,2/8] qlcnic: Fix bug in reading HW reset template

login
register
mail settings
Submitter Jitendra Kalsaria
Date Jan. 30, 2013, 10:47 p.m.
Message ID <1359586039-19051-3-git-send-email-jitendra.kalsaria@qlogic.com>
Download mbox | patch
Permalink /patch/217010/
State Accepted
Delegated to: David Miller
Headers show

Comments

Jitendra Kalsaria - Jan. 30, 2013, 10:47 p.m.
From: Manish chopra <manish.chopra@qlogic.com>

Signed-off-by: Manish chopra <manish.chopra@qlogic.com>
Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
---
 .../net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c
index 46162f8..1e81e94 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c
@@ -2374,7 +2374,7 @@  int qlcnic_83xx_flash_read32(struct qlcnic_adapter *adapter, u32 flash_addr,
 		if (ret == -EIO)
 			return -EIO;
 		word = ret;
-		*p_data  = word;
+		*(u32 *)p_data  = word;
 		p_data = p_data + 4;
 		addr = addr + 4;
 	}