Commit a5f8967e authored by David S. Miller's avatar David S. Miller

[SPARC64]: Set vio->desc_buf to NULL after freeing.

Otherwise we trigger assertions on the next link-up.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0785b9dc
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment