Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;