From: David S. Miller Date: Wed, 18 Jul 2007 07:33:23 +0000 (-0700) Subject: [SPARC64]: Set vio->desc_buf to NULL after freeing. X-Git-Tag: v2.6.23-rc1~497^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5f8967e171a6fa27da8e6d06d3ef85f7fed43c1;p=linux-2.6 [SPARC64]: Set vio->desc_buf to NULL after freeing. Otherwise we trigger assertions on the next link-up. Signed-off-by: David S. Miller --- diff --git a/arch/sparc64/kernel/viohs.c b/arch/sparc64/kernel/viohs.c index 8eb381fa0f..09126fc338 100644 --- a/arch/sparc64/kernel/viohs.c +++ b/arch/sparc64/kernel/viohs.c @@ -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;