public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Evgeny Kuznetsov <EXT-Eugeny.Kuznetsov@nokia.com>
To: tony@atomide.com
Cc: linux@arm.linux.org.uk, khilman@deeprootsystems.com,
	ext-eugeny.kuznetsov@nokia.com, linux-kernel@vger.kernel.org,
	balbi@ti.com, tero.kristo@nokia.com, akpm@linux-foundation.org,
	linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	charu@ti.com
Subject: [PATCHv2 0/1] omap: Ptr "isr_reg" tracked as NULL was dereferenced
Date: Wed, 13 Oct 2010 14:04:49 +0400	[thread overview]
Message-ID: <cover.1286961160.git.EXT-Eugeny.Kuznetsov@nokia.com> (raw)

Hi,

Here is second version of patch which fixes bug in 
/arch/arm/plat-omap/gpio.c file.
Pointer which may have NULL value in some cases (depend on kernel
configuration and GPIO method) is dereferenced later in code.

I removed BUG() macro to do not halt code execution accoding to comments.
And added WARN_ON() macro and exit from function if pointer "isr_reg" is NULL.
Also compilation check is added for correct architecture
configuration.

Thanks,
Evgeny

Evgeny Kuznetsov (1):
  omap: Ptr "isr_reg" tracked as NULL was dereferenced

 arch/arm/plat-omap/gpio.c |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

             reply	other threads:[~2010-10-13 10:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-13 10:04 Evgeny Kuznetsov [this message]
2010-10-13 10:04 ` [PATCHv2 1/1] omap: Ptr "isr_reg" tracked as NULL was dereferenced Evgeny Kuznetsov
2010-10-13 10:55   ` Varadarajan, Charulatha
2010-10-13 11:43     ` Evgeny Kuznetsov
2010-10-13 11:50       ` Varadarajan, Charulatha
2010-10-13 12:09         ` Evgeny Kuznetsov
2010-10-15  6:16           ` Evgeny Kuznetsov
2010-10-18 23:11             ` Tony Lindgren

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=cover.1286961160.git.EXT-Eugeny.Kuznetsov@nokia.com \
    --to=ext-eugeny.kuznetsov@nokia.com \
    --cc=akpm@linux-foundation.org \
    --cc=balbi@ti.com \
    --cc=charu@ti.com \
    --cc=khilman@deeprootsystems.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=tero.kristo@nokia.com \
    --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