Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751424AbbLUJdt (ORCPT ); Mon, 21 Dec 2015 04:33:49 -0500 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:43345 "EHLO e06smtp10.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751050AbbLUJdq (ORCPT ); Mon, 21 Dec 2015 04:33:46 -0500 X-IBM-Helo: d06dlp03.portsmouth.uk.ibm.com X-IBM-MailFrom: heiko.carstens@de.ibm.com X-IBM-RcptTo: kernel-janitors@vger.kernel.org;linux-kernel@vger.kernel.org;linux-s390@vger.kernel.org Date: Mon, 21 Dec 2015 10:33:16 +0100 From: Heiko Carstens To: Julia Lawall Cc: Martin Schwidefsky , kernel-janitors@vger.kernel.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org 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> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15122109-0041-0000-0000-000006B9DDA8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 645 Lines: 26 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. -- 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/