mirror of
https://github.com/AuxXxilium/synology-igc.git
synced 2024-11-23 15:01:06 +07:00
igc: Fix use-after-free error during reset
backport from 56ea7ed103
Signed-off-by: Jim Ma <majinjing3@gmail.com>
This commit is contained in:
parent
0491c6f10f
commit
ddf5b31257
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user