Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754702AbbHJJ1H (ORCPT ); Mon, 10 Aug 2015 05:27:07 -0400 Received: from ozlabs.org ([103.22.144.67]:59822 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932292AbbHJJ1B (ORCPT ); Mon, 10 Aug 2015 05:27:01 -0400 X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 35a7f41cc6bb7013e344502b03c5583d04228bd3 In-Reply-To: <1429186730-20723-1-git-send-email-weiyj_lk@163.com> To: weiyj_lk@163.com, Benjamin Herrenschmidt , Paul Mackerras , Wolfram Sang , Alexander Gordeev , Wei Yongjun , Thomas Gleixner , Jiang Liu , Alistair Popple From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: powerpc/4xx: Fix return value check in hsta_msi_probe() Message-Id: <20150810092700.424571402D8@ozlabs.org> Date: Mon, 10 Aug 2015 19:27:00 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 704 Lines: 19 On Thu, 2015-16-04 at 12:18:50 UTC, weiyj_lk@163.com wrote: > From: Wei Yongjun > > In case of error, the functions platform_get_resource() and kmalloc() > returns NULL not ERR_PTR(). The IS_ERR() test in the return value check > should be replaced with NULL test. > > Signed-off-by: Wei Yongjun Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/35a7f41cc6bb7013e344 cheers -- 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/