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
..
2017-04-12 22:02:40 +02:00
2017-05-04 11:37:09 -07:00
2017-04-13 13:58:20 -04:00
2017-05-17 11:32:44 -04:00
2016-10-20 11:23:08 -04:00
2017-04-21 15:29:40 -04:00
2017-01-24 11:07:35 +01:00
2017-04-06 11:10:41 +01:00
2017-05-11 21:37:40 -04:00
2017-04-06 12:43:04 -07:00