]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] USB: fix bug in cypress_cy7c63.c driver
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Aug 2006 00:32:51 +0000 (17:32 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 26 Aug 2006 20:06:11 +0000 (13:06 -0700)
This was pointed out by Adrian Bunk <bunk@stusta.de>, as found by the Coverity Checker.

Cc: Adrian Bunk <bunk@stusta.de>
Cc: Oliver Bock <o.bock@fh-wolfenbuettel.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/cypress_cy7c63.c

index a4062a6adbb830f20c9539b063e69ae493d8c966..9c46746d5d002ab0881918e39ab363f71a4fb926 100644 (file)
@@ -208,7 +208,7 @@ static int cypress_probe(struct usb_interface *interface,
        /* allocate memory for our device state and initialize it */
        dev = kzalloc(sizeof(*dev), GFP_KERNEL);
        if (dev == NULL) {
-               dev_err(&dev->udev->dev, "Out of memory!\n");
+               dev_err(&interface->dev, "Out of memory!\n");
                goto error;
        }