diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-07-18 07:33:23 (GMT) |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-18 08:20:26 (GMT) |
commit | a5f8967e171a6fa27da8e6d06d3ef85f7fed43c1 (patch) | |
tree | d94fc3d44d3982eec71cad765121970233cecedc | |
parent | 0785b9dcdc3d93e67529e4bd819a427776d3a07e (diff) | |
download | linux-a5f8967e171a6fa27da8e6d06d3ef85f7fed43c1.tar.xz |
[SPARC64]: Set vio->desc_buf to NULL after freeing.
Otherwise we trigger assertions on the next link-up.
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | arch/sparc64/kernel/viohs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/viohs.c b/arch/sparc64/kernel/viohs.c index 8eb381fa..09126fc 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; |