Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306163
b: refs/heads/master
c: 0a3475e
h: refs/heads/master
i:
  306161: a2edc65
  306159: 8a4932d
v: v3
  • Loading branch information
Xi Wang authored and Mauro Carvalho Chehab committed Apr 18, 2012
1 parent 337031d commit 5d79ed6
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: 5f0049bd69b96537dc7c02755c169fb4ccca3ddf
refs/heads/master: 0a3475eb618321013dab9ac744201ed09e8061f9
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 @@ -2259,7 +2259,8 @@ static int try_set_ext_ctrls(struct v4l2_fh *fh, struct v4l2_ctrl_handler *hdl,
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)
return -ENOMEM;
}
Expand Down

0 comments on commit 5d79ed6

Please sign in to comment.