Skip to content

Commit 0eb713f

Browse files
irengedavem330
authored andcommitted
net: netrom: Add missing annotation for nr_node_stop()
Sparse reports a warning at nr_node_stop() warning: context imbalance in nr_node_stop() - wrong count at exit The root cause is the missing annotation at nr_node_stop() Add the missing __releases(&nr_node_list_lock) annotation Signed-off-by: Jules Irenge <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5018adf commit 0eb713f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/netrom/nr_route.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ static void *nr_node_next(struct seq_file *seq, void *v, loff_t *pos)
850850
}
851851

852852
static void nr_node_stop(struct seq_file *seq, void *v)
853+
__releases(&nr_node_list_lock)
853854
{
854855
spin_unlock_bh(&nr_node_list_lock);
855856
}

0 commit comments

Comments
 (0)