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>
This commit is contained in:
Manish chopra 2013-01-30 12:47:13 +00:00 committed by David S. Miller
parent 069048f18b
commit 1403f43a8f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}