Skip to contentSkip to conversation

net/ipv4/raw.c: Fix sparse noise about context imbalance

PATCH New H Hartley Sweeten 1 participant 1 message Aug 5, 2009 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ipv4/raw.c: Fix sparse noise about context imbalance

Fix sparse noise due to context imbalance by annotating the functions.

---

net/ipv4/raw.c +2 -0
index 2979f14..e83f7c5 100644
@@ -896,6 +896,7 @@ static struct sock *raw_get_idx(struct seq_file *seq, loff_t pos)
 }
 
 void *raw_seq_start(struct seq_file *seq, loff_t *pos)
+	__acquires(&state->h->lock)
 {
 	struct raw_iter_state *state = raw_seq_private(seq);
 
@@ -918,6 +919,7 @@ void *raw_seq_next(struct seq_file *seq, void *v, loff_t *pos)
 EXPORT_SYMBOL_GPL(raw_seq_next);
 
 void raw_seq_stop(struct seq_file *seq, void *v)
+	__releases(&state->h->lock)
 {
 	struct raw_iter_state *state = raw_seq_private(seq);