[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170106204620.GD29909@mtj.duckdns.org>
Date: Fri, 6 Jan 2017 15:46:20 -0500
From: Tejun Heo <tj@...nel.org>
To: Arvind Yadav <arvind.yadav.cs@...il.com>
Cc: linux-ide@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [V1] ata: sata_mv:- Handle return value of devm_ioremap.
On Mon, Dec 12, 2016 at 11:13:27PM +0530, Arvind Yadav wrote:
> Here, If devm_ioremap will fail. It will return NULL.
> Then hpriv->base = NULL - 0x20000; Kernel can run into
> a NULL-pointer dereference. This error check will avoid
> NULL pointer dereference.
>
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@...il.com>
Applied to libata/for-4.10-fixes.
Thanks.
--
tejun
Powered by blists - more mailing lists