Re: [2.6 patch] drivers/char/watchdog/pcwd_usb.c: fix a NULL pointer dereference

From: Wim Van Sebroeck
Date: Sun Mar 12 2006 - 14:48:41 EST


Hi Adrian,

> The Coverity checker noted that this resulted in a NULL pointer
> reference if we were coming from
>
> if (usb_pcwd == NULL) {
> printk(KERN_ERR PFX "Out of memory\n");
> goto error;
> }
>
>
> Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

This is indeed a bug. I added this patch into my linux-2.6-watchdog-mm tree and I have tested it positively with a PCWD-USB card.

Thanks,
Wim.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/