Commit b93b58ee authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 39ba487f
...@@ -208,7 +208,7 @@ static int cypress_probe(struct usb_interface *interface, ...@@ -208,7 +208,7 @@ static int cypress_probe(struct usb_interface *interface,
/* allocate memory for our device state and initialize it */ /* allocate memory for our device state and initialize it */
dev = kzalloc(sizeof(*dev), GFP_KERNEL); dev = kzalloc(sizeof(*dev), GFP_KERNEL);
if (dev == NULL) { if (dev == NULL) {
dev_err(&dev->udev->dev, "Out of memory!\n"); dev_err(&interface->dev, "Out of memory!\n");
goto error; goto error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment