]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
netxen: fix bios version calculation
authorAmit Kumar Salecha <amit.salecha@qlogic.com>
Fri, 26 Mar 2010 00:30:07 +0000 (00:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Mar 2010 18:49:21 +0000 (11:49 -0700)
Bios sub version from unified fw image is calculated incorrect.

Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netxen/netxen_nic_init.c

index 1c63610ead422a29b4628e525b7c1be37de300dd..7eb925a9f36e3ed6d558841659d02b812b790dd6 100644 (file)
@@ -761,7 +761,7 @@ nx_get_bios_version(struct netxen_adapter *adapter)
        if (adapter->fw_type == NX_UNIFIED_ROMIMAGE) {
                bios_ver = cpu_to_le32(*((u32 *) (&fw->data[prd_off])
                                                + NX_UNI_BIOS_VERSION_OFF));
-               return (bios_ver << 24) + ((bios_ver >> 8) & 0xff00) +
+               return (bios_ver << 16) + ((bios_ver >> 8) & 0xff00) +
                                                        (bios_ver >> 24);
        } else
                return cpu_to_le32(*(u32 *)&fw->data[NX_BIOS_VERSION_OFFSET]);