diff options
author | Daniel Thompson <daniel.thompson@linaro.org> | 2014-05-29 09:48:44 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-29 11:28:05 -0700 |
commit | 06d18289256ec58b78ae8d5b83ff70c3c34309f5 (patch) | |
tree | e6f11e28e4ace0453756822635a7460eb3f5046e /tools/perf/scripts/python/sctop.py | |
parent | 2fe686ebafb43414c406c4c6252ad388a871bf1a (diff) |
serial: kgdb_nmi: Use container_of() to locate private data
This corrects a crash in kgdb_nmi_tty_shutdown() which occurs when
the function is called with port->tty set to NULL.
All conversions between struct tty_port and struct kgdb_nmi_tty_priv
have been switched to direct calls to container_of() to improve code
clarity and consistancy.
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions