Merge "msm: camera: isp: use correct number of entries"

This commit is contained in:
Linux Build Service Account 2019-09-06 07:36:45 -07:00 committed by Gerrit - the friendly Code Review server
commit 6ec84a46b9

View file

@ -206,7 +206,7 @@ static int32_t msm_vfe40_init_qos_parms(struct vfe_device *vfe_dev,
if (rc < 0 || !ds_entries) {
pr_err("%s: NO D/S entries found\n", __func__);
} else {
ds_settings = kzalloc(sizeof(uint32_t) * ds_entries,
ds_settings = kcalloc(ds_entries, sizeof(uint32_t),
GFP_KERNEL);
if (!ds_settings) {
pr_err("%s:%d No memory\n", __func__, __LINE__);