Browse Source

qlcnic: Fix bug in reading HW reset template

Signed-off-by: Manish chopra <manish.chopra@qlogic.com>
Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Manish chopra 12 years ago
parent
commit
1403f43a8f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c

+ 1 - 1
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;
 	}