|
@@ -1109,8 +1109,8 @@ int v4l2_ctrl_handler_init(struct v4l2_ctrl_handler *hdl,
|
|
|
INIT_LIST_HEAD(&hdl->ctrls);
|
|
|
INIT_LIST_HEAD(&hdl->ctrl_refs);
|
|
|
hdl->nr_of_buckets = 1 + nr_of_controls_hint / 8;
|
|
|
- hdl->buckets = kzalloc(sizeof(hdl->buckets[0]) * hdl->nr_of_buckets,
|
|
|
- GFP_KERNEL);
|
|
|
+ hdl->buckets = kcalloc(hdl->nr_of_buckets, sizeof(hdl->buckets[0]),
|
|
|
+ GFP_KERNEL);
|
|
|
hdl->error = hdl->buckets ? 0 : -ENOMEM;
|
|
|
return hdl->error;
|
|
|
}
|