]> git.baikalelectronics.ru Git - kernel.git/commit
net: FIX ipv6_forward sysctl restart
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 13 May 2009 16:58:17 +0000 (16:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 May 2009 05:15:58 +0000 (22:15 -0700)
commitba0e6097dff051dc853e217e81f94618d51b3ef4
tree95f89bd01bca414a6bd40ea46fd6065bebe6b135
parentdeeeb32e15903046e0a321afb7a74f31962cd365
net: FIX ipv6_forward sysctl restart

Just returning -ERESTARTSYS without a signal pending is not
good that will just leak it to userspace.  We need return
-ERESTARTNOINTR so we always restart and set signal pending
so that we fall of the fast path of syscall return and setup
the system call restart.

So use restart_syscall() which does all of this for us.

Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c