Skip to content

Commit

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

Fix this sparse warnings:
  net/decnet/dn_dev.c:1324:13: warning: context imbalance in 'dn_dev_seq_start' - wrong count at exit
  net/decnet/dn_dev.c:1366:13: warning: context imbalance in 'dn_dev_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 63d819c commit 8521c27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/decnet/dn_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1323,6 +1323,7 @@ static inline int is_dn_dev(struct net_device *dev)
}

static void *dn_dev_seq_start(struct seq_file *seq, loff_t *pos)
__acquires(&dev_base_lock)
{
int i;
struct net_device *dev;
Expand Down Expand Up @@ -1365,6 +1366,7 @@ static void *dn_dev_seq_next(struct seq_file *seq, void *v, loff_t *pos)
}

static void dn_dev_seq_stop(struct seq_file *seq, void *v)
__releases(&dev_base_lock)
{
read_unlock(&dev_base_lock);
}
Expand Down

0 comments on commit 8521c27

Please sign in to comment.