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

Commit 860b67af 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: Fix memory leak in camera driver"

parents a200934d bef62721
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -223,6 +223,8 @@ int32_t msm_camera_qup_i2c_write(struct msm_camera_i2c_client *client,
	rc = msm_camera_qup_i2c_txdata(client, buf, len);
	if (rc < 0)
		S_I2C_DBG("%s fail\n", __func__);
	kfree(buf);
	buf = NULL;
	return rc;
}

@@ -272,6 +274,8 @@ int32_t msm_camera_qup_i2c_write_seq(struct msm_camera_i2c_client *client,
	rc = msm_camera_qup_i2c_txdata(client, buf, len+num_byte);
	if (rc < 0)
		S_I2C_DBG("%s fail\n", __func__);
	kfree(buf);
	buf = NULL;
	return rc;
}