]> err.no Git - linux-2.6/commitdiff
[SPARC64]: Set vio->desc_buf to NULL after freeing.
authorDavid S. Miller <davem@sunset.davemloft.net>
Wed, 18 Jul 2007 07:33:23 +0000 (00:33 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 18 Jul 2007 08:20:26 +0000 (01:20 -0700)
Otherwise we trigger assertions on the next link-up.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/viohs.c

index 8eb381fa0f2895a518a380c59d1bd19554bac253..09126fc338ba70ef28774af051146bebe5f1fa46 100644 (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;