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

Commit a9de0500 authored by Emil Goode's avatar Emil Goode Committed by David S. Miller
Browse files

net: cassini: use nested lock annotation



In the cas_lock_tx function we acquire multiple locks in a loop and
need to use nested lock annotation to prevent lockdep warnings.

Reported-by: default avatarMeelis Roos <mroos@linux.ee>
Signed-off-by: default avatarEmil Goode <emilgoode@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent de682941
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -246,7 +246,7 @@ static inline void cas_lock_tx(struct cas *cp)
	int i;

	for (i = 0; i < N_TX_RINGS; i++)
		spin_lock(&cp->tx_lock[i]);
		spin_lock_nested(&cp->tx_lock[i], i);
}

static inline void cas_lock_all(struct cas *cp)