]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV6]: Fix the return value of ipv6_getsockopt
authorWei Yongjun <yjwei@cn.fujitsu.com>
Sun, 16 Dec 2007 21:39:57 +0000 (13:39 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Dec 2007 21:39:57 +0000 (13:39 -0800)
commit33526c7643bd025220758c78c057ef698acd03ee
treec2586cf2d1f2261533696607ff67925cab26853b
parentcf67cb4b7d7f01dc07ce4f9e00c1e82df304a103
[IPV6]: Fix the return value of ipv6_getsockopt

If CONFIG_NETFILTER if not selected when compile the kernel source code,
ipv6_getsockopt will returen an EINVAL error if optname is not supported by
the kernel. But if CONFIG_NETFILTER is selected, ENOPROTOOPT error will
be return.

This patch fix to always return ENOPROTOOPT error if optname argument of
ipv6_getsockopt is not supported by the kernel.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ipv6_sockglue.c