Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22027
b: refs/heads/master
c: 51b208d
h: refs/heads/master
i:
  22025: 927d9d8
  22023: 1c84ec5
v: v3
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Mar 20, 2006
1 parent 7214885 commit 26531c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b10b4177881c50f22a79832558054f2e42be5cfa
refs/heads/master: 51b208ddf6e492c58609e07fa50bce98bb02cb27
3 changes: 1 addition & 2 deletions trunk/drivers/usb/media/usbvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,14 +690,13 @@ int usbvideo_register(
}

base_size = num_cams * sizeof(struct uvd) + sizeof(struct usbvideo);
cams = (struct usbvideo *) kmalloc(base_size, GFP_KERNEL);
cams = (struct usbvideo *) kzalloc(base_size, GFP_KERNEL);
if (cams == NULL) {
err("Failed to allocate %d. bytes for usbvideo struct", base_size);
return -ENOMEM;
}
dbg("%s: Allocated $%p (%d. bytes) for %d. cameras",
__FUNCTION__, cams, base_size, num_cams);
memset(cams, 0, base_size);

/* Copy callbacks, apply defaults for those that are not set */
memmove(&cams->cb, cbTbl, sizeof(cams->cb));
Expand Down

0 comments on commit 26531c4

Please sign in to comment.