Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306162
b: refs/heads/master
c: 5f0049b
h: refs/heads/master
v: v3
  • Loading branch information
Xi Wang authored and Mauro Carvalho Chehab committed Apr 18, 2012
1 parent a2edc65 commit 337031d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 30059d93b07a034555defbf14d689a279fd7368d
refs/heads/master: 5f0049bd69b96537dc7c02755c169fb4ccca3ddf
3 changes: 2 additions & 1 deletion trunk/drivers/media/video/v4l2-ctrls.c
Original file line number Diff line number Diff line change
Expand Up @@ -2036,7 +2036,8 @@ int v4l2_g_ext_ctrls(struct v4l2_ctrl_handler *hdl, struct v4l2_ext_controls *cs
return class_check(hdl, cs->ctrl_class);

if (cs->count > ARRAY_SIZE(helper)) {
helpers = kmalloc(sizeof(helper[0]) * cs->count, GFP_KERNEL);
helpers = kmalloc_array(cs->count, sizeof(helper[0]),
GFP_KERNEL);
if (helpers == NULL)
return -ENOMEM;
}
Expand Down

0 comments on commit 337031d

Please sign in to comment.