summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2006-08-14 17:32:51 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2006-08-26 13:06:11 -0700
commitb93b58eea81beacac55770dd39e34fbffdc36000 (patch)
tree39cdedf90344a07ca815692f0c0d1b9316850dd8 /drivers/usb
parent39ba487fe22a63b3df7c543c82d01db0f0fed700 (diff)
downloadlinux-3.10-b93b58eea81beacac55770dd39e34fbffdc36000.tar.gz
linux-3.10-b93b58eea81beacac55770dd39e34fbffdc36000.tar.bz2
linux-3.10-b93b58eea81beacac55770dd39e34fbffdc36000.zip
[PATCH] USB: fix bug in cypress_cy7c63.c driver
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/misc/cypress_cy7c63.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/cypress_cy7c63.c b/drivers/usb/misc/cypress_cy7c63.c
index a4062a6adbb..9c46746d5d0 100644
--- a/drivers/usb/misc/cypress_cy7c63.c
+++ b/drivers/usb/misc/cypress_cy7c63.c
@@ -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;
}