]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6/route: Add a missing check on proc_dointvec
authorAditya Pakki <pakki001@umn.edu>
Mon, 24 Dec 2018 16:30:17 +0000 (10:30 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Dec 2018 00:18:03 +0000 (16:18 -0800)
commitbe5d1d2717745bccb84a2e00ad1f8911a2e45320
treed81f5dc4f0712579670180ecc6f370271a8d7d30
parent4e9622093a26c1d0bc4a32b9bc1f07107cd0ef53
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 <pakki001@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c