Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 3 Feb 2003 01:36:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 3 Feb 2003 01:36:31 -0500 Received: from 169.imtp.Ilyichevsk.Odessa.UA ([195.66.192.169]:23304 "EHLO Port.imtp.ilyichevsk.odessa.ua") by vger.kernel.org with ESMTP id ; Mon, 3 Feb 2003 01:36:30 -0500 Message-Id: <200302030638.h136cXs04904@Port.imtp.ilyichevsk.odessa.ua> Content-Type: text/plain; charset=US-ASCII From: Denis Vlasenko Reply-To: vda@port.imtp.ilyichevsk.odessa.ua To: Adam Belay , linux-kernel@vger.kernel.org Subject: Re: [PATCH][RFC] PnP BIOS cleanups (4/4) Date: Mon, 3 Feb 2003 08:36:59 +0200 X-Mailer: KMail [version 1.3.2] Cc: greg@kroah.com, Alan Cox , Jaroslav Kysela References: <20030202203656.GA23160@neo.rr.com> In-Reply-To: <20030202203656.GA23160@neo.rr.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 713 Lines: 22 On 2 February 2003 22:36, Adam Belay wrote: > This patch cleans up device inserting and disabling. > > > --- a/drivers/pnp/pnpbios/core.c Sun Feb 2 18:43:34 2003 > +++ b/drivers/pnp/pnpbios/core.c Sun Feb 2 19:19:13 2003 > @@ -236,6 +236,7 @@ > void *p = kmalloc( size, f ); > if ( p == NULL ) > printk(KERN_ERR "PnPBIOS: kmalloc() failed\n"); > + memset(p, 0, size); > return p; > } Erm... so you can memset an area pointed by a NULL pointer here? -- vda - 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/