diff options
-rw-r--r-- | net/netfilter/nfnetlink_log.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c index 2348fcb7c139..7efa40d47393 100644 --- a/net/netfilter/nfnetlink_log.c +++ b/net/netfilter/nfnetlink_log.c | |||
@@ -866,6 +866,7 @@ static struct hlist_node *get_idx(struct iter_state *st, loff_t pos) | |||
866 | } | 866 | } |
867 | 867 | ||
868 | static void *seq_start(struct seq_file *seq, loff_t *pos) | 868 | static void *seq_start(struct seq_file *seq, loff_t *pos) |
869 | __acquires(instances_lock) | ||
869 | { | 870 | { |
870 | read_lock_bh(&instances_lock); | 871 | read_lock_bh(&instances_lock); |
871 | return get_idx(seq->private, *pos); | 872 | return get_idx(seq->private, *pos); |
@@ -878,6 +879,7 @@ static void *seq_next(struct seq_file *s, void *v, loff_t *pos) | |||
878 | } | 879 | } |
879 | 880 | ||
880 | static void seq_stop(struct seq_file *s, void *v) | 881 | static void seq_stop(struct seq_file *s, void *v) |
882 | __releases(instances_lock) | ||
881 | { | 883 | { |
882 | read_unlock_bh(&instances_lock); | 884 | read_unlock_bh(&instances_lock); |
883 | } | 885 | } |