From: Thomas Gleixner <tglx@linutronix.de>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>,
David Daney <david.daney@cavium.com>,
linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH v2] irqdomain: potential Oops in irq_domain_push_irq()
Date: Fri, 25 Aug 2017 13:08:22 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.20.1708251306410.1883@nanos> (raw)
In-Reply-To: <20170825091000.z5taav6xj2yds6ch@mwanda>
On Fri, 25 Aug 2017, Dan Carpenter wrote:
> This code generates a Smatch warning:
>
> kernel/irq/irqdomain.c:1511 irq_domain_push_irq()
> warn: variable dereferenced before check 'root_irq_data' (see line 1508)
>
> irq_get_irq_data() does sometimes return NULL pointers so it does look
> like this code could Oops. I've moved the check for NULL earlier to
> fix this bug.
>From Documentation/process/submitting-patches.rst:
"Describe your changes in imperative mood, e.g. "make xyzzy do frotz"
instead of "[This patch] makes xyzzy do frotz" or "[I] changed xyzzy
to do frotz", as if you are giving orders to the codebase to change
its behaviour."
Is it that hard to read _and_ understand what those instructions mean?
Thanks,
tglx
prev parent reply other threads:[~2017-08-25 11:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-25 7:13 [PATCH] irqdomain: check for NULL before dereferencing Dan Carpenter
2017-08-25 8:45 ` Thomas Gleixner
2017-08-25 9:10 ` [PATCH v2] irqdomain: potential Oops in irq_domain_push_irq() Dan Carpenter
2017-08-25 11:08 ` Thomas Gleixner [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=alpine.DEB.2.20.1708251306410.1883@nanos \
--to=tglx@linutronix.de \
--cc=dan.carpenter@oracle.com \
--cc=david.daney@cavium.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marc.zyngier@arm.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
all inboxes | Powered by JetHome®