Skip to content

Commit bec6bfb

Browse files
tlendackydavem330
authored andcommitted
amd-xgbe: Fix initialization of the wrong spin lock
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4ee45ea commit bec6bfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/amd/xgbe/xgbe-main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static struct xgbe_channel *xgbe_alloc_rings(struct xgbe_prv_data *pdata)
172172
}
173173

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

0 commit comments

Comments
 (0)