linzhang 64df6d525f net: x25: fix one potential use-after-free issue
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>
2017-05-18 10:05:40 -04:00
..
2013-10-29 17:35:17 -04:00
2007-02-08 13:34:02 -08:00
2013-12-09 20:24:18 -05:00
2011-03-05 10:55:45 +01:00
2013-04-09 14:13:35 -04:00
2013-12-09 20:24:18 -05:00