From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 72C501A1059 for ; Tue, 7 Jul 2015 20:38:02 +1000 (AEST) In-Reply-To: <1435574111-45617-1-git-send-email-maninder1.s@samsung.com> To: Maninder Singh , imunsie@au1.ibm.com, mikey@neuling.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org From: Michael Ellerman Cc: Maninder Singh , pankaj.m@samsung.com Subject: Re: [1/1] cxl/vphb.c: Use phb pointer after NULL check Message-Id: <20150707103802.4FD821401EF@ozlabs.org> Date: Tue, 7 Jul 2015 20:38:02 +1000 (AEST) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2015-29-06 at 10:35:11 UTC, Maninder Singh wrote: > static Anlaysis detected below error:- > (error) Possible null pointer dereference: phb > > So, Use phb after NULL check. > > Signed-off-by: Maninder Singh > Acked-by: Ian Munsie Applied to powerpc fixes, thanks. https://git.kernel.org/cgit/linux/kernel/git/powerpc/linux.git/commit/?h=fixes&id=14f21189df33bc972455d6a0ed875aa68718d7fc cheers