diff options
| -rw-r--r-- | core/dp/txrx/ol_txrx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/dp/txrx/ol_txrx.c b/core/dp/txrx/ol_txrx.c index 1c44106ba72c..7dee9d7ffd83 100644 --- a/core/dp/txrx/ol_txrx.c +++ b/core/dp/txrx/ol_txrx.c @@ -2262,7 +2262,7 @@ static void ol_txrx_debugfs_exit(ol_txrx_pdev_handle pdev) */ void ol_txrx_pdev_detach(ol_txrx_pdev_handle pdev) { - struct ol_txrx_stats_req_internal *req; + struct ol_txrx_stats_req_internal *req, *temp_req; int i = 0; /*checking to ensure txrx pdev structure is not NULL */ @@ -2278,7 +2278,7 @@ void ol_txrx_pdev_detach(ol_txrx_pdev_handle pdev) "Warning: the txrx req list is not empty, depth=%d\n", pdev->req_list_depth ); - TAILQ_FOREACH(req, &pdev->req_list, req_list_elem) { + TAILQ_FOREACH_SAFE(req, &pdev->req_list, req_list_elem, temp_req) { TAILQ_REMOVE(&pdev->req_list, req, req_list_elem); pdev->req_list_depth--; ol_txrx_err( |
