[WATCHDOG] pcwd_usb.c: fix a NULL pointer dereference
authorAdrian Bunk <bunk@stusta.de>
Fri, 10 Mar 2006 18:04:38 +0000 (19:04 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 2 Apr 2006 16:51:50 +0000 (18:51 +0200)
commitc9d1a0b8d52e7539e22f3c3190f8b6e0c80b6cfe
treeea27a7a0e334f925eb6e42fb060d252c8439166a
parent6bbc20bc0b5d9c5a351fb3a027e60e396c1329a6
[WATCHDOG] pcwd_usb.c: fix a NULL pointer dereference

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>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@osdl.org>
drivers/char/watchdog/pcwd_usb.c