Skip to content

Commit

Permalink
net:ethernet:aquantia: Missing spinlock initialization.
Browse files Browse the repository at this point in the history
Fix for missing initialization aq_ring header.lock spinlock.

Fixes: 018423e ("net: ethernet: aquantia: Add ring support code")

Signed-off-by: Pavel Belous <pavel.belous@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Pavel Belous authored and David S. Miller committed Mar 24, 2017
1 parent ea0504f commit 9f0dd8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/aquantia/atlantic/aq_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ int aq_ring_init(struct aq_ring_s *self)
self->hw_head = 0;
self->sw_head = 0;
self->sw_tail = 0;
spin_lock_init(&self->header.lock);
return 0;
}

Expand Down

0 comments on commit 9f0dd8c

Please sign in to comment.