Commit 3f6baeda authored by Maria Yu's avatar Maria Yu Committed by Aiqun (Maria) Yu
Browse files

msm: camera: Add error check for msm_sd_register fail



This patch fixes a system crash by adding a proper error
handling in case msm_sd_register() has failed.

Without this new error handling, the caller will try to
access s_init->msm_sd.sd.devnode while it is null, which
leads to a crash.

Change-Id: I22009a1e5c8b6e12ff47106b0227e13ff046d86c
Signed-off-by: default avatarMaria Yu <aiquny@codeaurora.org>
parent 32af1902
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment