aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic_ctx.c
diff options
context:
space:
mode:
authorAmit Kumar Salecha <amit.salecha@qlogic.com>2010-06-21 23:19:04 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-23 16:16:31 -0400
commitd626ad4d84dba1e5bf176320e19765e6dc539b04 (patch)
tree8635e69996c729d4fed5eb8e6d77f8111ce50e2a /drivers/net/qlcnic/qlcnic_ctx.c
parent68bf1c68a4b3d9ad0a98f3310f2f79dca075a035 (diff)
qlcnic: mark context state freed after destroy
After destroying recv ctx, context state remain same. Fix it by marking as FREED. Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_ctx.c')
-rw-r--r--drivers/net/qlcnic/qlcnic_ctx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/qlcnic/qlcnic_ctx.c b/drivers/net/qlcnic/qlcnic_ctx.c
index be341c1564b8..941cd0873f87 100644
--- a/drivers/net/qlcnic/qlcnic_ctx.c
+++ b/drivers/net/qlcnic/qlcnic_ctx.c
@@ -280,6 +280,8 @@ qlcnic_fw_cmd_destroy_rx_ctx(struct qlcnic_adapter *adapter)
280 dev_err(&adapter->pdev->dev, 280 dev_err(&adapter->pdev->dev,
281 "Failed to destroy rx ctx in firmware\n"); 281 "Failed to destroy rx ctx in firmware\n");
282 } 282 }
283
284 recv_ctx->state = QLCNIC_HOST_CTX_STATE_FREED;
283} 285}
284 286
285static int 287static int