commit | 687b32e510372a64c489c22683652e5daa8b33e1 | [log] [tgz] |
---|---|---|
author | Soundrapandian Jeyaprakash <jsoundra@codeaurora.org> | Fri Jul 28 14:38:56 2017 -0700 |
committer | Soundrapandian Jeyaprakash <jsoundra@codeaurora.org> | Fri Jul 28 14:45:46 2017 -0700 |
tree | 6a3a28d6d36f4c5d7e5c14addd80728711a7d205 | |
parent | 18adb9525dc4fc51f3cab37a9cbe47ff6085136a [diff] [blame] |
msm: camera: Initialize power down settings size Initialize power down settings size before update the power down settings to avoid using invalid size. Change-Id: I7a444f7dcf00d3162627302b295926b13511609c Signed-off-by: Soundrapandian Jeyaprakash <jsoundra@codeaurora.org>
diff --git a/drivers/media/platform/msm/camera/cam_sensor_module/cam_sensor_utils/cam_sensor_util.c b/drivers/media/platform/msm/camera/cam_sensor_module/cam_sensor_utils/cam_sensor_util.c index 40a8c179..06590e4 100644 --- a/drivers/media/platform/msm/camera/cam_sensor_module/cam_sensor_utils/cam_sensor_util.c +++ b/drivers/media/platform/msm/camera/cam_sensor_module/cam_sensor_utils/cam_sensor_util.c
@@ -571,6 +571,7 @@ if (!power_info->power_setting) return -ENOMEM; + power_info->power_down_setting_size = 0; power_info->power_down_setting = (struct cam_sensor_power_setting *) kzalloc(sizeof(struct cam_sensor_power_setting) *