diff options
author | Yang Hongyang <yanghy@cn.fujitsu.com> | 2008-05-28 10:23:47 +0200 |
---|---|---|
committer | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2008-06-04 21:02:34 +0200 |
commit | 05335c2220c4911b69cb1bdd79e603ab08088372 (patch) | |
tree | fadca5b01e5029eaef277f691c9f4d78a54c0bad /sound | |
parent | [IPV6] ADDRCONF: Allow longer lifetime on 64bit archs. (diff) | |
download | linux-05335c2220c4911b69cb1bdd79e603ab08088372.tar.xz linux-05335c2220c4911b69cb1bdd79e603ab08088372.zip |
[IPV6]: Fix the return value of get destination options with NULL data pointer
If we pass NULL data buffer to getsockopt(), it will return 0,
and the option length is set to -EFAULT:
getsockopt(sk, IPPROTO_IPV6, IPV6_DSTOPTS, NULL, &len);
This is because ipv6_getsockopt_sticky() will return -EFAULT or
-EINVAL if some error occur.
This patch fix this problem.
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions