]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drivers/net/hamradio: fix sparse warning: context imbalance
authorHannes Eder <hannes@hanneseder.net>
Sat, 14 Feb 2009 11:34:52 +0000 (11:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Feb 2009 01:37:38 +0000 (17:37 -0800)
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>
drivers/net/hamradio/bpqether.c

index 723e9c11f1ab6ee85ddbed9686c02e64cb9bef18..44b183b58f50282dc226eb8641690dd649e72b5c 100644 (file)
@@ -386,6 +386,7 @@ static int bpq_close(struct net_device *dev)
  *     Proc filesystem
  */
 static void *bpq_seq_start(struct seq_file *seq, loff_t *pos)
+       __acquires(RCU)
 {
        int i = 1;
        struct bpqdev *bpqdev;
@@ -418,6 +419,7 @@ static void *bpq_seq_next(struct seq_file *seq, void *v, loff_t *pos)
 }
 
 static void bpq_seq_stop(struct seq_file *seq, void *v)
+       __releases(RCU)
 {
        rcu_read_unlock();
 }