[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:
David S. Miller 2007-07-18 00:33:23 -07:00
parent 0785b9dcdc
commit a5f8967e17

View file

@ -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;