From: Pavel Belous Date: Thu, 23 Mar 2017 11:19:43 +0000 (+0300) Subject: net:ethernet:aquantia: Missing spinlock initialization. X-Git-Tag: v4.11-rc6~27^2~51^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9f0dd8c322e89f137c44b437d6fbecc9dea12204;p=karo-tx-linux.git 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 Signed-off-by: David S. Miller --- 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; }