lkml.org 
[lkml]   [2003]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH][RFC] PnP BIOS cleanups (4/4)
Date
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    [W:0.031 / U:10.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site