lkml.org 
[lkml]   [2003]   [Feb]   [3]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromDenis Vlasenko <>
SubjectRe: [PATCH][RFC] PnP BIOS cleanups (4/4)
DateMon, 3 Feb 2003 08:36:59 +0200
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/

\
 
 \ /
  Last update: 2005-03-22 13:32    [from the cache]
©2003-2008