]> git.baikalelectronics.ru Git - kernel.git/commit
addrconf: always initialize sysctl table data
authorWANG Cong <xiyou.wangcong@gmail.com>
Mon, 21 Dec 2015 18:55:45 +0000 (10:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Dec 2015 22:00:58 +0000 (17:00 -0500)
commit784f3a5b8967cd6a735e9c0c2f16ff5e5e2289e0
treed45c413133a77f12c74950961286367daca26a61
parent3424f67b5141c253e03aee24e66c79972ffe8a70
addrconf: always initialize sysctl table data

When sysctl performs restrict writes, it allows to write from
a middle position of a sysctl file, which requires us to initialize
the table data before calling proc_dostring() for the write case.

Fixes: 251c4fe597d2 ("ipv6: introduce secret_stable to ipv6_devconf")
Reported-by: Sasha Levin <sasha.levin@oracle.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Tested-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c