Commit 3f5a2a71 authored by Luca Tettamanti's avatar Luca Tettamanti Committed by David S. Miller

atl1: zero out CMB and SBM in atl1_free_ring_resources

They are allocated in atl1_setup_ring_resources, zero out the pointers
in atl1_free_ring_resources (like the other resources).
Signed-off-by: default avatarLuca Tettamanti <kronos.it@gmail.com>
Acked-by: default avatarChris Snook <chris.snook@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ec5a32f6
...@@ -1251,6 +1251,12 @@ static void atl1_free_ring_resources(struct atl1_adapter *adapter) ...@@ -1251,6 +1251,12 @@ static void atl1_free_ring_resources(struct atl1_adapter *adapter)
rrd_ring->desc = NULL; rrd_ring->desc = NULL;
rrd_ring->dma = 0; 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) static void atl1_setup_mac_ctrl(struct atl1_adapter *adapter)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment