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/
This archive was generated by hypermail 2b29 : Fri Feb 07 2003 - 22:00:10 EST