diff options
| author | linzhang <xiaolou4617@gmail.com> | 2017-05-17 12:05:07 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-13 19:50:07 +0200 |
| commit | 88b5b5893e1dfdf86bda616832b34eb1f5a67926 (patch) | |
| tree | 808b6cc819590216fb26842800a353dabc6651c7 /tools/perf/scripts/python/syscall-counts.py | |
| parent | e9b095614952306c3111f2f039274534ce550fd4 (diff) | |
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>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
