From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 21 Dec 2015 10:33:16 +0100 From: Heiko Carstens Subject: Re: [PATCH 3/4] s390/cio: add NULL test Message-ID: <20151221093316.GA4058@osiris> References: <1450610153-7746-1-git-send-email-Julia.Lawall@lip6.fr> <1450610153-7746-4-git-send-email-Julia.Lawall@lip6.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1450610153-7746-4-git-send-email-Julia.Lawall@lip6.fr> Sender: linux-kernel-owner@vger.kernel.org List-Archive: List-Post: To: Julia Lawall Cc: Martin Schwidefsky , kernel-janitors@vger.kernel.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org List-ID: On Sun, Dec 20, 2015 at 12:15:52PM +0100, Julia Lawall wrote: > Add NULL test on call to kzalloc. > > The semantic match that finds this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x; > identifier fld; > @@ > > * x = kzalloc(...); > ... when != x == NULL > x->fld > // > > Signed-off-by: Julia Lawall Aplied, thanks.