diff options
Diffstat (limited to 'drivers/usb/media/pwc/pwc-if.c')
-rw-r--r-- | drivers/usb/media/pwc/pwc-if.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/media/pwc/pwc-if.c b/drivers/usb/media/pwc/pwc-if.c index db6753dc5ba5..90eb26042817 100644 --- a/drivers/usb/media/pwc/pwc-if.c +++ b/drivers/usb/media/pwc/pwc-if.c | |||
@@ -1867,12 +1867,11 @@ static int usb_pwc_probe(struct usb_interface *intf, const struct usb_device_id | |||
1867 | Info("Warning: more than 1 configuration available.\n"); | 1867 | Info("Warning: more than 1 configuration available.\n"); |
1868 | 1868 | ||
1869 | /* Allocate structure, initialize pointers, mutexes, etc. and link it to the usb_device */ | 1869 | /* Allocate structure, initialize pointers, mutexes, etc. and link it to the usb_device */ |
1870 | pdev = kmalloc(sizeof(struct pwc_device), GFP_KERNEL); | 1870 | pdev = kzalloc(sizeof(struct pwc_device), GFP_KERNEL); |
1871 | if (pdev == NULL) { | 1871 | if (pdev == NULL) { |
1872 | Err("Oops, could not allocate memory for pwc_device.\n"); | 1872 | Err("Oops, could not allocate memory for pwc_device.\n"); |
1873 | return -ENOMEM; | 1873 | return -ENOMEM; |
1874 | } | 1874 | } |
1875 | memset(pdev, 0, sizeof(struct pwc_device)); | ||
1876 | pdev->type = type_id; | 1875 | pdev->type = type_id; |
1877 | pdev->vsize = default_size; | 1876 | pdev->vsize = default_size; |
1878 | pdev->vframes = default_fps; | 1877 | pdev->vframes = default_fps; |