aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2020-02-10 15:57:30 +0100
committerGreg Kroah-Hartman <[email protected]>2020-02-10 12:26:44 -0800
commit0c5aae59270fb1f827acce182786094c9ccf598e (patch)
tree8d1aec4d45885ffacdf59a8ae9acd06902cbf135 /tools/perf/util/trace-event-scripting.c
parent87c5cbf71ecbb9e289d60a2df22eb686c70bf196 (diff)
serdev: ttyport: restore client ops on deregistration
The serdev tty-port controller driver should reset the tty-port client operations also on deregistration to avoid a NULL-pointer dereference in case the port is later re-registered as a normal tty device. Note that this can only happen with tty drivers such as 8250 which have statically allocated port structures that can end up being reused and where a later registration would not register a serdev controller (e.g. due to registration errors or if the devicetree has been changed in between). Specifically, this can be an issue for any statically defined ports that would be registered by 8250 core when an 8250 driver is being unbound. Fixes: bed35c6dfa6a ("serdev: add a tty port controller driver") Cc: stable <[email protected]> # 4.11 Reported-by: Loic Poulain <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions