serial: mpc52xx_uart: fix null pointer dereference
authorAnatolij Gustschin <agust@denx.de>
Tue, 4 May 2010 22:18:59 +0000 (00:18 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 13 May 2010 19:10:55 +0000 (12:10 -0700)
commite6114fa1d1d6a588766f28081b971047dd3e5def
tree58abc158d7f3ad52e5071b77c34be6d752848319
parentcea0d767c29669bf89f86e4aee46ef462d2ebae8
serial: mpc52xx_uart: fix null pointer dereference

Commit 6acc6833510db8f72b5ef343296d97480555fda9
introduced NULL pointer dereference and kernel crash
on ppc32 machines while booting. Fix this bug now.

Reported-by: Leonardo Chiquitto <leonardo.lists@gmail.com>
Tested-by: Leonardo Chiquitto <leonardo.lists@gmail.com>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/mpc52xx_uart.c