aboutsummaryrefslogtreecommitdiffstats
path: root/net/packet/af_packet.c
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2008-01-08 01:39:57 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:00:48 -0500
commit40ccbf525e55fc6d1f3a88c1e98b13db4dd618db (patch)
tree36ba0825f9c0d1797578834361b55dc844ecf744 /net/packet/af_packet.c
parent67b23219ce2f78352b0c566a472ff16c1b0fea9a (diff)
[PACKET]: Fix sparse warnings in af_packet.c
CHECK net/packet/af_packet.c net/packet/af_packet.c:1876:14: warning: context imbalance in 'packet_seq_start' - wrong count at exit net/packet/af_packet.c:1888:13: warning: context imbalance in 'packet_seq_stop' - unexpected unlock Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet/af_packet.c')
-rw-r--r--net/packet/af_packet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index 43e49f46ad43..b8b827c7062d 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -1870,6 +1870,7 @@ static inline struct sock *packet_seq_idx(struct net *net, loff_t off)
1870} 1870}
1871 1871
1872static void *packet_seq_start(struct seq_file *seq, loff_t *pos) 1872static void *packet_seq_start(struct seq_file *seq, loff_t *pos)
1873 __acquires(seq_file_net(seq)->packet.sklist_lock)
1873{ 1874{
1874 struct net *net = seq_file_net(seq); 1875 struct net *net = seq_file_net(seq);
1875 read_lock(&net->packet.sklist_lock); 1876 read_lock(&net->packet.sklist_lock);
@@ -1886,6 +1887,7 @@ static void *packet_seq_next(struct seq_file *seq, void *v, loff_t *pos)
1886} 1887}
1887 1888
1888static void packet_seq_stop(struct seq_file *seq, void *v) 1889static void packet_seq_stop(struct seq_file *seq, void *v)
1890 __releases(seq_file_net(seq)->packet.sklist_lock)
1889{ 1891{
1890 struct net *net = seq_file_net(seq); 1892 struct net *net = seq_file_net(seq);
1891 read_unlock(&net->packet.sklist_lock); 1893 read_unlock(&net->packet.sklist_lock);