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


Groups > linux.kernel > #1186114

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

From Rabin Vincent <rabin@rab.in>
Newsgroups linux.kernel
Subject Re: [RFT PATCH] gpio: etraxfs: Fix devm_ioremap_resource return value check
Date 2015-07-16 19:40 +0200
Message-ID <pMViy-57c-19@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 09, 2015 at 10:19:53PM +0900, Krzysztof Kozlowski 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")

Acked-by: Rabin Vincent <rabin@rab.in>

> Cc: <stable@vger.kernel.org>

I don't think this demands a stable backport though.
--
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 Rabin Vincent <rabin@rab.in> - 2015-07-16 19:40 +0200

csiph-web