atl1: zero out CMB and SBM in atl1_free_ring_resources
authorLuca Tettamanti <kronos.it@gmail.com>
Wed, 22 Sep 2010 10:42:31 +0000 (10:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Sep 2010 20:52:45 +0000 (13:52 -0700)
They are allocated in atl1_setup_ring_resources, zero out the pointers
in atl1_free_ring_resources (like the other resources).

Signed-off-by: Luca Tettamanti <kronos.it@gmail.com>
Acked-by: Chris Snook <chris.snook@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/atlx/atl1.c

index bbd6e3009be05d00428f4058a1f6f423ee0e7957..c73be2848319deecd38a3d6f5e8e45ed8637e6f9 100644 (file)
@@ -1251,6 +1251,12 @@ static void atl1_free_ring_resources(struct atl1_adapter *adapter)
 
        rrd_ring->desc = NULL;
        rrd_ring->dma = 0;
+
+       adapter->cmb.dma = 0;
+       adapter->cmb.cmb = NULL;
+
+       adapter->smb.dma = 0;
+       adapter->smb.smb = NULL;
 }
 
 static void atl1_setup_mac_ctrl(struct atl1_adapter *adapter)