mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
serial: mpc52xx_uart: fix null pointer dereference
Commit 6acc683351
introduced NULL pointer dereference and kernel crash
on ppc32 machines while booting. Fix this bug now.
Reported-by: Leonardo Chiquitto <[email protected]>
Tested-by: Leonardo Chiquitto <[email protected]>
Signed-off-by: Anatolij Gustschin <[email protected]>
Acked-by: Grant Likely <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
cea0d767c2
commit
e6114fa1d1
1 changed files with 1 additions and 1 deletions
|
|
@ -1467,7 +1467,7 @@ mpc52xx_uart_init(void)
|
|||
/*
|
||||
* Map the PSC FIFO Controller and init if on MPC512x.
|
||||
*/
|
||||
if (psc_ops->fifoc_init) {
|
||||
if (psc_ops && psc_ops->fifoc_init) {
|
||||
ret = psc_ops->fifoc_init();
|
||||
if (ret)
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue