aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorEric Biggers <[email protected]>2020-02-24 00:03:26 -0800
committerGreg Kroah-Hartman <[email protected]>2020-03-12 21:43:49 +0100
commit1aa6e058dd6cd04471b1f21298270014daf48ac9 (patch)
tree0ae1611858c2724c808c20cd2d0e1c12c3920c66 /tools/perf/scripts/python/stackcollapse.py
parentc57c1644c266a42579dccd919c11d247be48cca5 (diff)
vt: vt_ioctl: remove unnecessary console allocation checks
The vc_cons_allocated() checks in vt_ioctl() and vt_compat_ioctl() are unnecessary because they can only be reached by calling ioctl() on an open tty, which implies the corresponding virtual console is allocated. And even if the virtual console *could* be freed concurrently, then these checks would be broken since they aren't done under console_lock, and the vc_data is dereferenced before them anyway. So, remove these unneeded checks to avoid confusion. Signed-off-by: Eric Biggers <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions