Skip to content

Commit

Permalink
net/802: fix sparse warnings: context imbalance
Browse files Browse the repository at this point in the history
Impact: Attribute function with __acquires(...) resp. __releases(...).

Fix this sparse warnings:
  net/802/tr.c:492:21: warning: context imbalance in 'rif_seq_start' - wrong count at exit
  net/802/tr.c:519:13: warning: context imbalance in 'rif_seq_stop' - unexpected unlock

Signed-off-by: Hannes Eder <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
hanneseder-net authored and davem330 committed Feb 27, 2009
1 parent 893d7de commit 81c5532
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/802/tr.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ static struct rif_cache *rif_get_idx(loff_t pos)
}

static void *rif_seq_start(struct seq_file *seq, loff_t *pos)
__acquires(&rif_lock)
{
spin_lock_irq(&rif_lock);

Expand Down Expand Up @@ -517,6 +518,7 @@ static void *rif_seq_next(struct seq_file *seq, void *v, loff_t *pos)
}

static void rif_seq_stop(struct seq_file *seq, void *v)
__releases(&rif_lock)
{
spin_unlock_irq(&rif_lock);
}
Expand Down

0 comments on commit 81c5532

Please sign in to comment.