diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-25 05:31:24 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-27 02:13:32 -0500 |
commit | 81c553299ffc4ce3512a6ea3eaf5070c2238c960 (patch) | |
tree | f7ed9749b3b1ec9deab9447697baf774340ad0be /net | |
parent | 893d7de7c319b31626816e2095492003cc2df2a6 (diff) |
net/802: fix sparse warnings: context imbalance
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 <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/802/tr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/802/tr.c b/net/802/tr.c index 158150fee462..dab6334b6258 100644 --- a/net/802/tr.c +++ b/net/802/tr.c | |||
@@ -486,6 +486,7 @@ static struct rif_cache *rif_get_idx(loff_t pos) | |||
486 | } | 486 | } |
487 | 487 | ||
488 | static void *rif_seq_start(struct seq_file *seq, loff_t *pos) | 488 | static void *rif_seq_start(struct seq_file *seq, loff_t *pos) |
489 | __acquires(&rif_lock) | ||
489 | { | 490 | { |
490 | spin_lock_irq(&rif_lock); | 491 | spin_lock_irq(&rif_lock); |
491 | 492 | ||
@@ -517,6 +518,7 @@ static void *rif_seq_next(struct seq_file *seq, void *v, loff_t *pos) | |||
517 | } | 518 | } |
518 | 519 | ||
519 | static void rif_seq_stop(struct seq_file *seq, void *v) | 520 | static void rif_seq_stop(struct seq_file *seq, void *v) |
521 | __releases(&rif_lock) | ||
520 | { | 522 | { |
521 | spin_unlock_irq(&rif_lock); | 523 | spin_unlock_irq(&rif_lock); |
522 | } | 524 | } |