diff options
author | Emil Goode <emilgoode@gmail.com> | 2014-05-09 03:07:17 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-10 00:34:10 +0400 |
commit | a9de0500083c18589ba2ea4543135c1bea8419ec (patch) | |
tree | 8cf6f252926cd6f989409df02f35f9675b7ef78c /drivers | |
parent | de682941eef3e5f6d1b653a6c214bc8a288f17c1 (diff) | |
download | linux-a9de0500083c18589ba2ea4543135c1bea8419ec.tar.xz |
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: Meelis Roos <mroos@linux.ee>
Signed-off-by: Emil Goode <emilgoode@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/sun/cassini.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sun/cassini.c b/drivers/net/ethernet/sun/cassini.c index df8d383acf48..b9ac20f42651 100644 --- a/drivers/net/ethernet/sun/cassini.c +++ b/drivers/net/ethernet/sun/cassini.c @@ -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) |