ipv6/route: Add a missing check on proc_dointvec
authorAditya Pakki <[email protected]>
Mon, 24 Dec 2018 16:30:17 +0000 (10:30 -0600)
committerDavid S. Miller <[email protected]>
Fri, 28 Dec 2018 00:18:03 +0000 (16:18 -0800)
commitf0fb9b288d0a7e9cc324ae362e2dfd2cc2217ded
treed81f5dc4f0712579670180ecc6f370271a8d7d30
parentdc4501ff287547dea7ca10f1c580c741291a8760
ipv6/route: Add a missing check on proc_dointvec

While flushing the cache via  ipv6_sysctl_rtcache_flush(), the call
to proc_dointvec() may fail. The fix adds a check that returns the
error, on failure.

Signed-off-by: Aditya Pakki <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/ipv6/route.c