qlcnic: Fix bug in reading HW reset template
authorManish chopra <manish.chopra@qlogic.com>
Wed, 30 Jan 2013 12:47:13 +0000 (12:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Jan 2013 01:34:49 +0000 (20:34 -0500)
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>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c

index 46162f8..1e81e94 100644 (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;
        }