mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
e57c624be8
commit
56bca31ff1
2 changed files with 3 additions and 1 deletions
|
@ -61,7 +61,8 @@ void inet_frag_destroy(struct inet_frag_queue *q,
|
||||||
struct inet_frags *f, int *work);
|
struct inet_frags *f, int *work);
|
||||||
int inet_frag_evictor(struct netns_frags *nf, struct inet_frags *f);
|
int inet_frag_evictor(struct netns_frags *nf, struct inet_frags *f);
|
||||||
struct inet_frag_queue *inet_frag_find(struct netns_frags *nf,
|
struct inet_frag_queue *inet_frag_find(struct netns_frags *nf,
|
||||||
struct inet_frags *f, void *key, unsigned int hash);
|
struct inet_frags *f, void *key, unsigned int hash)
|
||||||
|
__releases(&f->lock);
|
||||||
|
|
||||||
static inline void inet_frag_put(struct inet_frag_queue *q, struct inet_frags *f)
|
static inline void inet_frag_put(struct inet_frag_queue *q, struct inet_frags *f)
|
||||||
{
|
{
|
||||||
|
|
|
@ -267,6 +267,7 @@ static struct inet_frag_queue *inet_frag_create(struct netns_frags *nf,
|
||||||
|
|
||||||
struct inet_frag_queue *inet_frag_find(struct netns_frags *nf,
|
struct inet_frag_queue *inet_frag_find(struct netns_frags *nf,
|
||||||
struct inet_frags *f, void *key, unsigned int hash)
|
struct inet_frags *f, void *key, unsigned int hash)
|
||||||
|
__releases(&f->lock)
|
||||||
{
|
{
|
||||||
struct inet_frag_queue *q;
|
struct inet_frag_queue *q;
|
||||||
struct hlist_node *n;
|
struct hlist_node *n;
|
||||||
|
|
Loading…
Reference in a new issue