From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bartlomiej Zolnierkiewicz Date: Wed, 04 Jan 2017 12:41:49 +0000 Subject: Re: [v1] video:fbdev:cobalt_lcdfb:- Handle return NULL error from devm_ioremap Message-Id: <2521746.Pc0WRFopsW@amdc3058> List-Id: References: <1481617252-8298-1-git-send-email-arvind.yadav.cs@gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Yuasa Yoichi , Arvind Yadav Cc: tomi.valkeinen@ti.com, ralf@linux-mips.org, paul.burton@imgtec.com, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Hi, On Wednesday, December 14, 2016 11:23:07 AM Yuasa Yoichi wrote: > Hi Arvind, > > Thank you for fixing it. > > Acked-by: Yoichi Yuasa > > 2016-12-13 17:20 GMT+09:00 Arvind Yadav : > > Here, If devm_ioremap will fail. It will return NULL. > > Kernel can run into a NULL-pointer dereference. > > This error check will avoid NULL pointer dereference. > > > > Signed-off-by: Arvind Yadav Applied & queued for v4.10. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics