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

Wim Van Sebroeck
2006-03-12T19:51:03Z

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@stusta.de>

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.