Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755931AbcCaGkQ (ORCPT ); Thu, 31 Mar 2016 02:40:16 -0400 Received: from mail.kernel.org ([198.145.29.136]:49084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751172AbcCaGkN (ORCPT ); Thu, 31 Mar 2016 02:40:13 -0400 Date: Thu, 31 Mar 2016 14:39:53 +0800 From: Shawn Guo To: Vladimir Zapolskiy Cc: Thomas Gleixner , Jason Cooper , Marc Zyngier , Oleksij Rempel , Sascha Hauer , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] irqchip/mxs: fix error check of of_io_request_and_map() Message-ID: <20160331063953.GS28207@tiger> References: <1457486500-10237-1-git-send-email-vz@mleia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1457486500-10237-1-git-send-email-vz@mleia.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 427 Lines: 9 On Wed, Mar 09, 2016 at 03:21:40AM +0200, Vladimir Zapolskiy wrote: > The of_io_request_and_map() returns a valid pointer in iomem region or > ERR_PTR(), check for NULL always fails and may cause a NULL pointer > dereference on error path. > > Fixes: 25e34b44313b ("irqchip/mxs: Prepare driver for hardware with different offsets") > Signed-off-by: Vladimir Zapolskiy Acked-by: Shawn Guo