|
@@ -2172,7 +2172,7 @@ static void ol_txrx_debugfs_exit(ol_txrx_pdev_handle pdev)
|
|
|
static void ol_txrx_pdev_detach(struct cdp_pdev *ppdev, int force)
|
|
|
{
|
|
|
struct ol_txrx_pdev_t *pdev = (struct ol_txrx_pdev_t *)ppdev;
|
|
|
- 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 */
|
|
@@ -2190,7 +2190,7 @@ static void ol_txrx_pdev_detach(struct cdp_pdev *ppdev, int force)
|
|
|
"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(
|