Skip to content

Commit

Permalink
atl1: zero out CMB and SBM in atl1_free_ring_resources
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Chris Snook <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
tettamanti authored and davem330 committed Sep 22, 2010
1 parent ec5a32f commit 3f5a2a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/net/atlx/atl1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3f5a2a7

Please sign in to comment.