diff options
| author | Dejin Zheng <[email protected]> | 2020-04-24 00:42:51 +0800 |
|---|---|---|
| committer | Bartlomiej Zolnierkiewicz <[email protected]> | 2020-06-01 15:15:20 +0200 |
| commit | fd4b8243877250c05bb24af7fea5567110c9720b (patch) | |
| tree | 783feacbd387affbfecbaf8d3d99eabac886f0a2 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | 98bd4f72988646c35569e1e838c0ab80d06c77f6 (diff) | |
console: newport_con: fix an issue about leak related system resources
A call of the function do_take_over_console() can fail here.
The corresponding system resources were not released then.
Thus add a call of iounmap() and release_mem_region()
together with the check of a failure predicate. and also
add release_mem_region() on device removal.
Fixes: e86bb8acc0fdc ("[PATCH] VT binding: Make newport_con support binding")
Suggested-by: Bartlomiej Zolnierkiewicz <[email protected]>
Signed-off-by: Dejin Zheng <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
cc: Thomas Gleixner <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions