projects/linux·commit 4ea6a804

[IPV6]: Fix refcnt of struct ip6_flowlabel

4ea6a804 · Yan Zheng <[email protected]> · 2005-10-24 19:55:23 +08:00

Signed-off-by: Yan Zheng <[email protected]>
Acked-by: YOSHIFUJI Hideaki <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Commit
4ea6a8046bb49d43c950898f0cb4e1994ef6c89d
Parents
444d1d9b

Changes

1 files changed · +1 −1

FileStatusAddDelContent
net/ipv6/ip6_flowlabel.cmodified+1−1View file

net/ipv6/ip6_flowlabel.c

View file
diff --git a/net/ipv6/ip6_flowlabel.c b/net/ipv6/ip6_flowlabel.c
index f841bde..bbbe80c 100644
--- a/net/ipv6/ip6_flowlabel.c
+++ b/net/ipv6/ip6_flowlabel.c
@@ -483,7 +483,7 @@ int ipv6_flowlabel_opt(struct sock *sk, char __user *optval, int optlen)
goto done;
}
fl1 = sfl->fl;
- atomic_inc(&fl->users);
+ atomic_inc(&fl1->users);
break;
}
}