Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751816AbeADD5G convert rfc822-to-8bit (ORCPT + 1 other); Wed, 3 Jan 2018 22:57:06 -0500 Received: from szxga02-in.huawei.com ([45.249.212.188]:2499 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751595AbeADD5F (ORCPT ); Wed, 3 Jan 2018 22:57:05 -0500 From: "weiyongjun (A)" To: Stafford Horne CC: Jonas Bonn , Stefan Kristiansson , Thomas Gleixner , Jason Cooper , Marc Zyngier , "openrisc@lists.librecores.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH -next] irqchip/ompic: fix return value check in ompic_of_init() Thread-Topic: [PATCH -next] irqchip/ompic: fix return value check in ompic_of_init() Thread-Index: AQHTg76jqHmagW2TN06r+B8J1Kn246NhtEeAgAFZNCA= Date: Thu, 4 Jan 2018 03:56:41 +0000 Message-ID: <6AADFAC011213A4C87B956458587ADB40131FAB5@dggemi507-mbx.china.huawei.com> References: <1514893639-70586-1-git-send-email-weiyongjun1@huawei.com> <20180103144129.GJ32243@lianli.shorne-pla.net> In-Reply-To: <20180103144129.GJ32243@lianli.shorne-pla.net> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.177.30.138] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Wed, Jan 03, 2018 10:41 PM, Stafford Horne wrote: > On Tue, Jan 02, 2018 at 11:47:19AM +0000, Wei Yongjun wrote: > > In case of error, the function ioremap() returns NULL pointer not > > ERR_PTR(). The IS_ERR() test in the return value check should be > > replaced with NULL test. > > Thanks, I am not sure why I was using the *ERR*() macros. 2 questions: > > - How did you notice this? This is detected by Coccinelle semantic patch. > - Should I pull this in through my tree or do you have another route? i.e. > Marc? Feel free to pull this through your tree.