drivers/usb/misc/cypress_cy7c63.c: NULL dereference

From: Adrian Bunk
Date: Mon Aug 14 2006 - 20:02:44 EST


The Coverity Checker spotted the following obvious NULL dereference:

<-- snip -->

...
static int cypress_probe(struct usb_interface *interface,
const struct usb_device_id *id)
{
...
if (dev == NULL) {
dev_err(&dev->udev->dev, "Out of memory!\n");
goto error;
}
...
}
...

<-- snip -->

cu
Adrian

--

Gentoo kernels are 42 times more popular than SUSE kernels among
KLive users (a service by SUSE contractor Andrea Arcangeli that
gathers data about kernels from many users worldwide).

There are three kinds of lies: Lies, Damn Lies, and Statistics.
Benjamin Disraeli

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/