diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-14 06:34:52 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-17 20:37:38 -0500 |
commit | e334f564e83c4aa6db4259b5d7e62d1b5032faf2 (patch) | |
tree | 10418e3045b51228613246c3b7f756a1ab8c79be /drivers/net | |
parent | eb33ae248682ecfdf44d693c72bc4f523f2fb6e3 (diff) |
drivers/net/hamradio: fix sparse warning: context imbalance
Impact: Attribute functions with __acquires(...) resp. __releases(...).
Fix this sparse warnings:
drivers/net/hamradio/bpqether.c:387:13: warning: context imbalance in 'bpq_seq_start' - wrong count at exit
drivers/net/hamradio/bpqether.c:419:13: warning: context imbalance in 'bpq_seq_stop' - unexpected unlock
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/hamradio/bpqether.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/hamradio/bpqether.c b/drivers/net/hamradio/bpqether.c index 723e9c11f1ab..44b183b58f50 100644 --- a/drivers/net/hamradio/bpqether.c +++ b/drivers/net/hamradio/bpqether.c | |||
@@ -386,6 +386,7 @@ static int bpq_close(struct net_device *dev) | |||
386 | * Proc filesystem | 386 | * Proc filesystem |
387 | */ | 387 | */ |
388 | static void *bpq_seq_start(struct seq_file *seq, loff_t *pos) | 388 | static void *bpq_seq_start(struct seq_file *seq, loff_t *pos) |
389 | __acquires(RCU) | ||
389 | { | 390 | { |
390 | int i = 1; | 391 | int i = 1; |
391 | struct bpqdev *bpqdev; | 392 | struct bpqdev *bpqdev; |
@@ -418,6 +419,7 @@ static void *bpq_seq_next(struct seq_file *seq, void *v, loff_t *pos) | |||
418 | } | 419 | } |
419 | 420 | ||
420 | static void bpq_seq_stop(struct seq_file *seq, void *v) | 421 | static void bpq_seq_stop(struct seq_file *seq, void *v) |
422 | __releases(RCU) | ||
421 | { | 423 | { |
422 | rcu_read_unlock(); | 424 | rcu_read_unlock(); |
423 | } | 425 | } |