[SPARC64]: Set vio->desc_buf to NULL after freeing.
Otherwise we trigger assertions on the next link-up. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0785b9dcdc
commit
a5f8967e17
|
@ -90,6 +90,7 @@ static void flush_rx_dring(struct vio_driver_state *vio)
|
|||
|
||||
BUG_ON(!vio->desc_buf);
|
||||
kfree(vio->desc_buf);
|
||||
vio->desc_buf = NULL;
|
||||
|
||||
memset(dr, 0, sizeof(*dr));
|
||||
dr->ident = ident;
|
||||
|
|
Loading…
Reference in a new issue