Skip to content

Commit

Permalink
amd-xgbe: Fix initialization of the wrong spin lock
Browse files Browse the repository at this point in the history
During allocation and initialization of the network driver structures,
the wrong pointer is used to initialize a spin lock. Fix the spin lock
initialization by using the proper pointer.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Lendacky, Thomas authored and David S. Miller committed Sep 2, 2014
1 parent 4ee45ea commit bec6bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/amd/xgbe/xgbe-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static struct xgbe_channel *xgbe_alloc_rings(struct xgbe_prv_data *pdata)
}

if (i < pdata->rx_ring_count) {
spin_lock_init(&tx_ring->lock);
spin_lock_init(&rx_ring->lock);
channel->rx_ring = rx_ring++;
}

Expand Down

0 comments on commit bec6bfb

Please sign in to comment.