linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / usb / misc / cytherm.c
index b20bec4..6671317 100644 (file)
@@ -14,6 +14,7 @@
  */
 
 
+#include <linux/config.h>
 #include <linux/kernel.h>
 #include <linux/errno.h>
 #include <linux/init.h>
@@ -350,11 +351,12 @@ static int cytherm_probe(struct usb_interface *interface,
        struct usb_cytherm *dev = NULL;
        int retval = -ENOMEM;
 
-       dev = kzalloc (sizeof(struct usb_cytherm), GFP_KERNEL);
+       dev = kmalloc (sizeof(struct usb_cytherm), GFP_KERNEL);
        if (dev == NULL) {
                dev_err (&interface->dev, "Out of memory\n");
                goto error;
        }
+       memset (dev, 0x00, sizeof (*dev));
 
        dev->udev = usb_get_dev(udev);