Skip to content

Commit

Permalink
[SPARC64]: Set vio->desc_buf to NULL after freeing.
Browse files Browse the repository at this point in the history
Otherwise we trigger assertions on the next link-up.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jul 18, 2007
1 parent 0785b9d commit a5f8967
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/sparc64/kernel/viohs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a5f8967

Please sign in to comment.