igc: Fix use-after-free error during reset

backport from 56ea7ed103

Signed-off-by: Jim Ma <majinjing3@gmail.com>
This commit is contained in:
Jim Ma 2022-10-27 02:02:00 +08:00
parent 0491c6f10f
commit ddf5b31257

View File

@ -213,6 +213,8 @@ static void igc_clean_tx_ring(struct igc_ring *tx_ring)
DMA_TO_DEVICE);
}
tx_buffer->next_to_watch = NULL;
/* move us one more past the eop_desc for start of next pkt */
tx_buffer++;
i++;