summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Belous <pavel.belous@aquantia.com>2017-03-23 14:19:43 +0300
committerDavid S. Miller <davem@davemloft.net>2017-03-24 12:32:19 -0700
commit9f0dd8c322e89f137c44b437d6fbecc9dea12204 (patch)
tree60017abc0e2c900e846a0e6b75da9b44feb6ff8e
parentea0504f554c8f989eab58549300d15582d36f039 (diff)
net:ethernet:aquantia: Missing spinlock initialization.
Fix for missing initialization aq_ring header.lock spinlock. Fixes: 018423e90bee ("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>
-rw-r--r--drivers/net/ethernet/aquantia/atlantic/aq_ring.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_ring.c b/drivers/net/ethernet/aquantia/atlantic/aq_ring.c
index 0358e6072d45..3a8a4aa13687 100644
--- a/drivers/net/ethernet/aquantia/atlantic/aq_ring.c
+++ b/drivers/net/ethernet/aquantia/atlantic/aq_ring.c
@@ -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;
}