Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ttyprintk: Fix NULL pointer deref by setting tty_port ops after initi…
…alizing 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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information