Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f0dd8c3 authored by Pavel Belous's avatar Pavel Belous Committed by David S. Miller
Browse files

net:ethernet:aquantia: Missing spinlock initialization.



Fix for missing initialization aq_ring header.lock spinlock.

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

Signed-off-by: default avatarPavel Belous <pavel.belous@aquantia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ea0504f5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}