]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tty: serial: altera_uart: Check for NULL platform_data in probe.
authorYuriy Kozlov <ykozlov@ptcusa.com>
Thu, 29 Mar 2012 07:55:27 +0000 (09:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Apr 2012 22:38:57 +0000 (15:38 -0700)
commite74711e8dcca9e5f49479c8ef1ea89698717be1e
tree07bdfeb67986902f4aea64a484fadb31620c1e35
parentdb3c56d76ac8c7eee6c2652e056f326c699e8ce9
tty: serial: altera_uart: Check for NULL platform_data in probe.

commit acede70d6561f2d042d9dbb153d9a3469479c0ed upstream.

Follow altera_jtag_uart.  This fixes a crash if there is a mistake in the DTS.

Signed-off-by: Yuriy Kozlov <ykozlov@ptcusa.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/altera_uart.c