Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34a53f8d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: add free allocated memory in case of error"

parents 0ff56cbd aa70a6df
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -187,6 +187,7 @@ static int32_t msm_flash_i2c_init(
			sizeof(struct msm_sensor_power_setting_array32))) {
			pr_err("%s copy_from_user failed %d\n",
				__func__, __LINE__);
			kfree(power_setting_array32);
			return -EFAULT;
		}

@@ -955,6 +956,7 @@ static int32_t msm_flash_platform_probe(struct platform_device *pdev)
	if (rc < 0) {
		pr_err("%s:%d msm_flash_get_dt_data failed\n",
			__func__, __LINE__);
		kfree(flash_ctrl);
		return -EINVAL;
	}