From: Leonardo Chiquitto <leonardo.lists@gmail.com>
To: Anatolij Gustschin <agust@denx.de>
Cc: linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org,
grant.likely@secretlab.ca, gregkh@suse.de
Subject: Re: [PATCH] serial: mpc52xx_uart: fix null pointer dereference
Date: Wed, 5 May 2010 09:40:47 -0300 [thread overview]
Message-ID: <s2ic2d0b6ec1005050540nb382fc0aj70c4f132543a66aa@mail.gmail.com> (raw)
In-Reply-To: <1273011539-13994-1-git-send-email-agust@denx.de>
On Tue, May 4, 2010 at 7:18 PM, Anatolij Gustschin <agust@denx.de> wrote:
> 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>
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
> ---
> drivers/serial/mpc52xx_uart.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/serial/mpc52xx_uart.c b/drivers/serial/mpc52xx_uart.c
> index a176ab4..02469c3 100644
> --- a/drivers/serial/mpc52xx_uart.c
> +++ b/drivers/serial/mpc52xx_uart.c
> @@ -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;
> --
> 1.7.0.4
Thanks for the quick fix, Anatolij. I just tested it and confirm it resolves
the problem.
Leonardo
next prev parent reply other threads:[~2010-05-05 12:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <g2xc2d0b6ec1005041339r9c40822w7a642f9bba976820@mail.gmail.com>
2010-05-04 22:18 ` Anatolij Gustschin
2010-05-05 12:40 ` Leonardo Chiquitto [this message]
2010-05-09 22:04 ` Grant Likely
2010-05-10 16:25 ` Greg KH
2010-05-10 20:46 ` Grant Likely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s2ic2d0b6ec1005050540nb382fc0aj70c4f132543a66aa@mail.gmail.com \
--to=leonardo.lists@gmail.com \
--cc=agust@denx.de \
--cc=grant.likely@secretlab.ca \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®