commit | cfb266c0ee0ea0b7bfa8189e3a3a80344dec6112 | [log] [tgz] |
---|---|---|
author | Yang Hongyang <yanghy@cn.fujitsu.com> | Sun Aug 03 18:16:15 2008 -0700 |
committer | David S. Miller <davem@davemloft.net> | Sun Aug 03 18:16:15 2008 -0700 |
tree | 89989c670a92740f511486dd60e5aa14397d44b1 | |
parent | 1730554f253deb65fe5112c54b2f898d5318a328 [diff] |
ipv6: Fix the return value of Set Hop-by-Hop options header with NULL data pointer When Set Hop-by-Hop options header with NULL data pointer and optlen is not zero use setsockopt(), the kernel successfully return 0 instead of return error EINVAL or EFAULT. This patch fix the problem. Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>