Re: [PATCH net v3] net: x25: fix one potential use-after-free issue

From: David Miller
Date: Thu May 18 2017 - 10:06:45 EST


From: linzhang <xiaolou4617@xxxxxxxxx>
Date: Wed, 17 May 2017 12:05:07 +0800

> 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@xxxxxxxxx>

Applied, thanks.