From: Darrick J. Wong Date: Fri, 10 May 2013 22:40:13 +0000 (-0700) Subject: ttyprintk: Fix NULL pointer deref by setting tty_port ops after initializing port X-Git-Tag: v3.10-rc3~25^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5325a02aa84c794cf520d6d68cae4b150988a32;p=pandora-kernel.git ttyprintk: Fix NULL pointer deref by setting tty_port ops after initializing port tty_port_init() zeroes out the tty port, which means that we have to set the ops pointer /after/, not before this call. Otherwise, tty_port_open will crash when it tries to deref ops, which is now a NULL pointer. Signed-off-by: Darrick J. Wong Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed