diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-25 05:32:52 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-27 02:13:35 -0500 |
commit | 56bca31ff1989aa8b60f717e984b0e624f06324e (patch) | |
tree | 574eb3761f17c037dbed7674420873f1f5a879ce /include/net | |
parent | e57c624be8f99e56560fd2f4f485fe29f28dd74f (diff) |
inet fragments: fix sparse warning: context imbalance
Impact: Attribute function with __releases(...)
Fix this sparse warning:
net/ipv4/inet_fragment.c:276:35: warning: context imbalance in 'inet_frag_find' - unexpected unlock
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/inet_frag.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/inet_frag.h b/include/net/inet_frag.h index e081eefd6f47..39f2dc943908 100644 --- a/include/net/inet_frag.h +++ b/include/net/inet_frag.h | |||
@@ -61,7 +61,8 @@ void inet_frag_destroy(struct inet_frag_queue *q, | |||
61 | struct inet_frags *f, int *work); | 61 | struct inet_frags *f, int *work); |
62 | int inet_frag_evictor(struct netns_frags *nf, struct inet_frags *f); | 62 | int inet_frag_evictor(struct netns_frags *nf, struct inet_frags *f); |
63 | struct inet_frag_queue *inet_frag_find(struct netns_frags *nf, | 63 | struct inet_frag_queue *inet_frag_find(struct netns_frags *nf, |
64 | struct inet_frags *f, void *key, unsigned int hash); | 64 | struct inet_frags *f, void *key, unsigned int hash) |
65 | __releases(&f->lock); | ||
65 | 66 | ||
66 | static inline void inet_frag_put(struct inet_frag_queue *q, struct inet_frags *f) | 67 | static inline void inet_frag_put(struct inet_frag_queue *q, struct inet_frags *f) |
67 | { | 68 | { |