Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1186536

Re: [RFT PATCH] gpio: etraxfs: Fix devm_ioremap_resource return value check

From Linus Walleij <linus.walleij@linaro.org>
Newsgroups linux.kernel
Subject Re: [RFT PATCH] gpio: etraxfs: Fix devm_ioremap_resource return value check
Date 2015-07-17 09:50 +0200
Message-ID <pN8z7-7r6-11@gated-at.bofh.it> (permalink)
References <pKk3N-H7-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Jul 9, 2015 at 3:19 PM, Krzysztof Kozlowski
<k.kozlowski.k@gmail.com> wrote:

> 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>
> Fixes: d342571efea8 ("gpio: add ETRAXFS GPIO driver")
> Cc: <stable@vger.kernel.org>

Patch applied for next cycle, stripped the Fixes: and stable tags.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [RFT PATCH] gpio: etraxfs: Fix devm_ioremap_resource return value check Linus Walleij <linus.walleij@linaro.org> - 2015-07-17 09:50 +0200

csiph-web