diff options
-rw-r--r-- | drivers/net/qlcnic/qlcnic.h | 2 | ||||
-rw-r--r-- | drivers/net/qlcnic/qlcnic_ctx.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/qlcnic/qlcnic.h b/drivers/net/qlcnic/qlcnic.h index 6ec34a7fba65..7fa761ac15c2 100644 --- a/drivers/net/qlcnic/qlcnic.h +++ b/drivers/net/qlcnic/qlcnic.h | |||
@@ -573,7 +573,7 @@ struct qlcnic_recv_context { | |||
573 | /* | 573 | /* |
574 | * Context state | 574 | * Context state |
575 | */ | 575 | */ |
576 | 576 | #define QLCNIC_HOST_CTX_STATE_FREED 0 | |
577 | #define QLCNIC_HOST_CTX_STATE_ACTIVE 2 | 577 | #define QLCNIC_HOST_CTX_STATE_ACTIVE 2 |
578 | 578 | ||
579 | /* | 579 | /* |
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 | ||
285 | static int | 287 | static int |