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

Commit c48e75f3 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: Fix memory leak in camera driver"

parents ca8d2f1d 63a98804
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -222,6 +222,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;
}

@@ -271,6 +273,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;
}