Messages in this thread | | | From | Denis Vlasenko <> | Subject | Re: [PATCH][RFC] PnP BIOS cleanups (4/4) | Date | Mon, 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/
| |