From: Cousson, Benoit Date: Tue, 28 Feb 2012 17:22:12 +0000 (+0100) Subject: tty: serial: OMAP: Fix oops due to NULL pdata in DT boot X-Git-Tag: v3.4-rc1~185^2~98 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5f43138da9beddc46b00ec31d167143a7176683;p=pandora-kernel.git 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 Reviewed-by: Paul Walmsley Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed