]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: OMAP: Fix oops due to NULL pdata in DT boot
authorCousson, Benoit <b-cousson@ti.com>
Tue, 28 Feb 2012 17:22:12 +0000 (18:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2012 18:56:44 +0000 (10:56 -0800)
commit28631a22c6a65067163ceb24c4a344c8672cf414
tree077fe6f2ed1070ba9c82f268777553822d930074
parentdec63a48668ae5a250dd91550e6fd0341f45ca2d
tty: serial: OMAP: Fix oops due to NULL pdata in DT boot

The following commit: 12e05acf6ada9fde6d83cfbcb754951ef95e36b4
(tty: serial: OMAP: block idle while the UART is transferring data in PIO mode),
is introducing an oops if OMAP is booted using device tree blob because
the pdata will not be initialized.

Check if pdata is set before de-referencing it.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Reviewed-by: Paul Walmsley <paul@pwsan.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/omap-serial.c