diff options
author | Sritej Velaga <sritej.velaga@qlogic.com> | 2011-08-29 16:50:29 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-30 06:52:50 +0400 |
commit | 9254b751492c7fc08497a5c0e0cd668ddd269ea2 (patch) | |
tree | 0835d876bf509dc1dc776ad87ee48cdcef043fbc /drivers/net/ethernet/qlogic/qlcnic/qlcnic.h | |
parent | a2050c7eeef034521f34df9cb896e72ea6802331 (diff) | |
download | linux-9254b751492c7fc08497a5c0e0cd668ddd269ea2.tar.xz |
qlcnic: fix cdrp race condition
Reading CRB registers(if reqd) before releasing the api lock.
Signed-off-by: Sritej Velaga <sritej.velaga@qlogic.com>
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qlcnic/qlcnic.h')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h b/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h index 4118502ef295..2a3e552e9ffb 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h @@ -1465,7 +1465,8 @@ int qlcnic_check_loopback_buff(unsigned char *data, u8 mac[]); /* Functions from qlcnic_main.c */ int qlcnic_reset_context(struct qlcnic_adapter *); u32 qlcnic_issue_cmd(struct qlcnic_adapter *adapter, - u32 pci_fn, u32 version, u32 arg1, u32 arg2, u32 arg3, u32 cmd); + u32 pci_fn, u32 version, u32 arg1, u32 arg2, u32 arg3, u32 cmd, + u32 *rd_args[3]); void qlcnic_diag_free_res(struct net_device *netdev, int max_sds_rings); int qlcnic_diag_alloc_res(struct net_device *netdev, int test); netdev_tx_t qlcnic_xmit_frame(struct sk_buff *skb, struct net_device *netdev); |