Commit 94b8fc37 authored by Jeyaprakash Soundrapandian's avatar Jeyaprakash Soundrapandian
Browse files

msm: camera: Fixed memory leak and added NULL check



1. Dynamic memory stored in cofig_cam allocated through
function kzalloc can be lost in the error cases. Hence
common error handling along with de-allocation is added.
2. Pointer ctrl checked for NULL and returned on NULL.

Change-Id: I53ca31159507a3bc059507cdfda897028a241065
Signed-off-by: default avatarJeyaprakash Soundrapandian <jsound@codeaurora.org>
parent 3cd33861
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment