Browse Source

qlcnic: Fix dump template version mask

Driver was using wrong mask for template version.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Shahed Shaikh 12 years ago
parent
commit
744b66dde0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c

+ 1 - 1
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c

@@ -1084,7 +1084,7 @@ flash_temp:
 	tmpl_hdr = ahw->fw_dump.tmpl_hdr;
 	tmpl_hdr->drv_cap_mask = QLCNIC_DUMP_MASK_DEF;
 
-	if ((tmpl_hdr->version & 0xffffff) >= 0x20001)
+	if ((tmpl_hdr->version & 0xfffff) >= 0x20001)
 		ahw->fw_dump.use_pex_dma = true;
 	else
 		ahw->fw_dump.use_pex_dma = false;