From: Kumar Gala <galak@kernel.crashing.org>
To: Rusev <arusev@dev.rtsoft.ru>
Cc: benh@kernel.crashing.org, paulus@samba.org,
Shengzhou.Liu@freescale.com, Shaohui.Xie@freescale.com,
linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: Fix for fsl_upm
Date: Thu, 27 Oct 2011 13:28:12 -0500 [thread overview]
Message-ID: <4BF2BC2E-1596-42D1-A403-78A1FDBC9EAC@kernel.crashing.org> (raw)
In-Reply-To: <4EA9683D.8030100@dev.rtsoft.ru>
On Oct 27, 2011, at 9:18 AM, Rusev wrote:
> patch is vs. 2.6.39, yet it applied to 3.1
>
>
>
> Fix of UPM driver for Freescale PowerPC processors
>
> If Freescale LBC driver fails to initialise itself from device tree,
> then internal structure is freed only but not NULL-fied.
> As result functions fsl_lbc_find() after checking the structure is not NULL are
> trying to access device registers.
>
> Signed-off-by: Alexandre Rusev <arusev@dev.rtsoft.ru>
> --- linux-2.6.39.old/arch/powerpc/sysdev/fsl_lbc.c 2011-10-27 03:17:28.000000000 +0400
> +++ linux-2.6.39/arch/powerpc/sysdev/fsl_lbc.c 2011-10-27 05:06:44.000000000 +0400
> @@ -322,6 +322,7 @@ static int __devinit fsl_lbc_ctrl_probe(
> err:
> iounmap(fsl_lbc_ctrl_dev->regs);
> kfree(fsl_lbc_ctrl_dev);
> + fsl_lbc_ctrl_dev = NULL;
> return ret;
> }
>
Can you send this as a proper patch.
- k
next prev parent reply other threads:[~2011-10-27 18:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-27 14:18 Rusev
2011-10-27 18:28 ` Kumar Gala [this message]
2011-11-24 7:46 ` Kumar Gala
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=4BF2BC2E-1596-42D1-A403-78A1FDBC9EAC@kernel.crashing.org \
--to=galak@kernel.crashing.org \
--cc=Shaohui.Xie@freescale.com \
--cc=Shengzhou.Liu@freescale.com \
--cc=arusev@dev.rtsoft.ru \
--cc=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=paulus@samba.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®