From: David Miller <davem@davemloft.net>
To: k.kozlowski.k@gmail.com
Cc: anirudh@xilinx.com, John.Linn@xilinx.com,
michal.simek@xilinx.com, soren.brinkmann@xilinx.com,
netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [RFT PATCH] net: axienet: Fix devm_ioremap_resource return value check
Date: Thu, 09 Jul 2015 21:44:05 -0700 (PDT) [thread overview]
Message-ID: <20150709.214405.325044957551402588.davem@davemloft.net> (raw)
In-Reply-To: <1436448080-24775-1-git-send-email-k.kozlowski.k@gmail.com>
From: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Date: Thu, 9 Jul 2015 22:21:20 +0900
> Value returned by devm_ioremap_resource() was checked for non-NULL but
> devm_ioremap_resource() returns IOMEM_ERR_PTR, not NULL. In case of
> error this could lead to dereference of ERR_PTR.
>
> Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
> Cc: <stable@vger.kernel.org>
> Fixes: 46aa27df8853 ("net: axienet: Use devm_* calls")
Applied, thanks.
WARNING: multiple messages have this Message-ID (diff)
From: davem@davemloft.net (David Miller)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFT PATCH] net: axienet: Fix devm_ioremap_resource return value check
Date: Thu, 09 Jul 2015 21:44:05 -0700 (PDT) [thread overview]
Message-ID: <20150709.214405.325044957551402588.davem@davemloft.net> (raw)
In-Reply-To: <1436448080-24775-1-git-send-email-k.kozlowski.k@gmail.com>
From: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Date: Thu, 9 Jul 2015 22:21:20 +0900
> Value returned by devm_ioremap_resource() was checked for non-NULL but
> devm_ioremap_resource() returns IOMEM_ERR_PTR, not NULL. In case of
> error this could lead to dereference of ERR_PTR.
>
> Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
> Cc: <stable@vger.kernel.org>
> Fixes: 46aa27df8853 ("net: axienet: Use devm_* calls")
Applied, thanks.
next prev parent reply other threads:[~2015-07-10 4:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-09 13:21 [RFT PATCH] net: axienet: Fix devm_ioremap_resource return value check Krzysztof Kozlowski
2015-07-09 13:21 ` Krzysztof Kozlowski
2015-07-09 21:03 ` Sören Brinkmann
2015-07-09 21:03 ` Sören Brinkmann
2015-07-10 4:44 ` David Miller [this message]
2015-07-10 4:44 ` David Miller
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=20150709.214405.325044957551402588.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=John.Linn@xilinx.com \
--cc=anirudh@xilinx.com \
--cc=k.kozlowski.k@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.simek@xilinx.com \
--cc=netdev@vger.kernel.org \
--cc=soren.brinkmann@xilinx.com \
--cc=stable@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.