Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1178323

Re: [1/1] cxl/vphb.c: Use phb pointer after NULL check

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Michael Ellerman <mpe@ellerman.id.au>
Newsgroups linux.kernel
Subject Re: [1/1] cxl/vphb.c: Use phb pointer after NULL check
Date Tue, 07 Jul 2015 12:40:02 +0200
Message-ID <pJysa-4vc-19@gated-at.bofh.it> (permalink)
References <pGEDM-os-9@gated-at.bofh.it>
X-Original-To Maninder Singh <maninder1.s@samsung.com>, imunsie@au1.ibm.com, mikey@neuling.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
X-Powerpc-Patch-Notification thanks
X-Powerpc-Patch-Commit 14f21189df33bc972455d6a0ed875aa68718d7fc
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 19
Organization linux.* mail to news gateway
X-Original-Cc Maninder Singh <maninder1.s@samsung.com>, pankaj.m@samsung.com
X-Original-Date Tue, 7 Jul 2015 20:38:02 +1000 (AEST)
X-Original-Message-ID <20150707103802.4FD821401EF@ozlabs.org>
X-Original-References <1435574111-45617-1-git-send-email-maninder1.s@samsung.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1178323

Show key headers only | View raw


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 <maninder1.s@samsung.com>
> Acked-by: Ian Munsie <imunsie@au1.ibm.com>

Applied to powerpc fixes, thanks.

https://git.kernel.org/cgit/linux/kernel/git/powerpc/linux.git/commit/?h=fixes&id=14f21189df33bc972455d6a0ed875aa68718d7fc

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/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [1/1] cxl/vphb.c: Use phb pointer after NULL check Michael Ellerman <mpe@ellerman.id.au> - 2015-07-07 12:40 +0200

csiph-web