android_kernel_oneplus_msm8998/net/x25
linzhang 88b5b5893e net: x25: fix one potential use-after-free issue
[ Upstream commit 64df6d525fcff1630098db9238bfd2b3e092d5c1 ]

The function x25_init is not properly unregister related resources
on error handler.It is will result in kernel oops if x25_init init
failed, so add properly unregister call on error handler.

Also, i adjust the coding style and make x25_register_sysctl properly
return failure.

Signed-off-by: linzhang <xiaolou4617@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-13 19:50:07 +02:00
..
af_x25.c net: x25: fix one potential use-after-free issue 2018-04-13 19:50:07 +02:00
Kconfig
Makefile
sysctl_net_x25.c net: x25: fix one potential use-after-free issue 2018-04-13 19:50:07 +02:00
x25_dev.c
x25_facilities.c net: fix a kernel infoleak in x25 module 2016-05-18 17:06:43 -07:00
x25_forward.c
x25_in.c
x25_link.c
x25_out.c
x25_proc.c
x25_route.c
x25_subr.c
x25_timer.c