Commit d626ad4d authored by Amit Kumar Salecha's avatar Amit Kumar Salecha Committed by David S. Miller

qlcnic: mark context state freed after destroy

After destroying recv ctx, context state remain same.
Fix it by marking as FREED.
Signed-off-by: default avatarAmit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 68bf1c68
...@@ -573,7 +573,7 @@ struct qlcnic_recv_context { ...@@ -573,7 +573,7 @@ struct qlcnic_recv_context {
/* /*
* Context state * Context state
*/ */
#define QLCNIC_HOST_CTX_STATE_FREED 0
#define QLCNIC_HOST_CTX_STATE_ACTIVE 2 #define QLCNIC_HOST_CTX_STATE_ACTIVE 2
/* /*
......
...@@ -280,6 +280,8 @@ qlcnic_fw_cmd_destroy_rx_ctx(struct qlcnic_adapter *adapter) ...@@ -280,6 +280,8 @@ qlcnic_fw_cmd_destroy_rx_ctx(struct qlcnic_adapter *adapter)
dev_err(&adapter->pdev->dev, dev_err(&adapter->pdev->dev,
"Failed to destroy rx ctx in firmware\n"); "Failed to destroy rx ctx in firmware\n");
} }
recv_ctx->state = QLCNIC_HOST_CTX_STATE_FREED;
} }
static int static int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment