From: Felipe Contreras <felipe.contreras@gmail.com>
To: Scott Ellis <scott@jumpnowtek.com>
Cc: linux-kernel@vger.kernel.org,
David Brownell <dbrownell@users.sourceforge.net>,
Andrew Morton <akpm@linux-foundation.org>,
Tony Lindgren <tony@atomide.com>,
Kevin Hilman <khilman@deeprootsystems.com>,
Aaro Koskinen <Aaro.Koskinen@nokia.com>,
spi-devel-general@lists.sourceforge.net,
gumstix-users@lists.sourceforge.net
Subject: Re: [PATCH] omap2_mcspi.c: NULL pointer dereference
Date: Thu, 25 Feb 2010 13:14:27 +0200 [thread overview]
Message-ID: <94a0d4531002250314o4a1d08cclceb20e991c51d829@mail.gmail.com> (raw)
In-Reply-To: <1266953763.32702.49.camel@quad>
On Tue, Feb 23, 2010 at 9:36 PM, Scott Ellis <scott@jumpnowtek.com> wrote:
> Check spi->controller_state before dereferencing.
>
> Shows up NULL here when using spi_alloc_device()/spi_add_device()
> and spi_add_device() fails before spi_setup(). Calling spi_dev_put()
> on the leftover spi_device results in the error.
This should go to the linux-omap mailing list.
--
Felipe Contreras
prev parent reply other threads:[~2010-02-25 11:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-23 19:36 [PATCH] omap2_mcspi.c: NULL pointer dereference Scott Ellis
2010-02-25 11:14 ` Felipe Contreras [this message]
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=94a0d4531002250314o4a1d08cclceb20e991c51d829@mail.gmail.com \
--to=felipe.contreras@gmail.com \
--cc=Aaro.Koskinen@nokia.com \
--cc=akpm@linux-foundation.org \
--cc=dbrownell@users.sourceforge.net \
--cc=gumstix-users@lists.sourceforge.net \
--cc=khilman@deeprootsystems.com \
--cc=linux-kernel@vger.kernel.org \
--cc=scott@jumpnowtek.com \
--cc=spi-devel-general@lists.sourceforge.net \
--cc=tony@atomide.com \
/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;
as well as URLs for NNTP newsgroup(s).