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

Commit 03184707 authored by Rajesh Bondugula's avatar Rajesh Bondugula
Browse files

msm: camera: sensor: free allocated memory when failed



free cci dev instance when probe fails.

Change-Id: Ia5f0ef305f72e1cb037f16552ab383289107d0de
Signed-off-by: default avatarRajesh Bondugula <rajeshb@codeaurora.org>
parent f8fa637b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1279,6 +1279,7 @@ static int msm_cci_probe(struct platform_device *pdev)
	rc = msm_cci_get_clk_info(new_cci_dev, pdev);
	if (rc < 0) {
		pr_err("%s: msm_cci_get_clk_info() failed", __func__);
		kfree(new_cci_dev);
		return -EFAULT;
	}