From 06d18289256ec58b78ae8d5b83ff70c3c34309f5 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Thu, 29 May 2014 09:48:44 +0100 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed