diff options
author | Cousson, Benoit <b-cousson@ti.com> | 2012-02-28 18:22:12 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-08 10:56:44 -0800 |
commit | a5f43138da9beddc46b00ec31d167143a7176683 (patch) | |
tree | 077fe6f2ed1070ba9c82f268777553822d930074 /drivers/tty/cyclades.c | |
parent | 079c9534a96da9a85a2a2f9715851050fbfbf749 (diff) | |
download | op-kernel-dev-a5f43138da9beddc46b00ec31d167143a7176683.zip op-kernel-dev-a5f43138da9beddc46b00ec31d167143a7176683.tar.gz |
tty: serial: OMAP: Fix oops due to NULL pdata in DT boot
The following commit: be4b0281956c5cae4f63f31f11d07625a6988766
(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>
Diffstat (limited to 'drivers/tty/cyclades.c')
0 files changed, 0 insertions, 0 deletions