Skip to content

Commit

Permalink
[PATCH] USB: fix bug in cypress_cy7c63.c driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Aug 26, 2006
1 parent 39ba487 commit b93b58e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/misc/cypress_cy7c63.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b93b58e

Please sign in to comment.