qlcnic: Fix API unlock
authorManish chopra <manish.chopra@qlogic.com>
Fri, 3 Feb 2012 13:45:44 +0000 (13:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Feb 2012 20:59:30 +0000 (15:59 -0500)
Log dump status.
Remove unmatched qlcnic_api_unlock call.
Update version to 5.0.26.

Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c

index 60976fc4ccc67bb4e7131c34d399472a5e9930da..2b5af22419a5e541726dc3880310817488ba6c99 100644 (file)
@@ -37,7 +37,7 @@
 #define _QLCNIC_LINUX_MAJOR 5
 #define _QLCNIC_LINUX_MINOR 0
 #define _QLCNIC_LINUX_SUBVERSION 25
-#define QLCNIC_LINUX_VERSIONID  "5.0.25"
+#define QLCNIC_LINUX_VERSIONID  "5.0.26"
 #define QLCNIC_DRV_IDC_VER  0x01
 #define QLCNIC_DRIVER_VERSION  ((_QLCNIC_LINUX_MAJOR << 16) |\
                 (_QLCNIC_LINUX_MINOR << 8) | (_QLCNIC_LINUX_SUBVERSION))
index 6b2cf8bd16c39d956fb577b0c22e09abbeb55fce..30dcbfba8f2474e3f8bc0f9184fa9f517c63f8de 100644 (file)
@@ -1152,7 +1152,6 @@ qlcnic_get_dump_data(struct net_device *netdev, struct ethtool_dump *dump,
 
        if (!fw_dump->clr) {
                netdev_info(netdev, "Dump not available\n");
-               qlcnic_api_unlock(adapter);
                return -EINVAL;
        }
        /* Copy template header first */
@@ -1171,7 +1170,7 @@ qlcnic_get_dump_data(struct net_device *netdev, struct ethtool_dump *dump,
        vfree(fw_dump->data);
        fw_dump->data = NULL;
        fw_dump->clr = 0;
-
+       netdev_info(netdev, "extracted the FW dump Successfully\n");
        return 0;
 }
 
@@ -1189,7 +1188,7 @@ qlcnic_set_dump(struct net_device *netdev, struct ethtool_dump *val)
                        return ret;
                }
                if (fw_dump->clr) {
-                       dev_info(&adapter->pdev->dev,
+                       netdev_info(netdev,
                        "Previous dump not cleared, not forcing dump\n");
                        return ret;
                }