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

Skip to content
Commit 27ed2467 authored by Maria Yu's avatar 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 928de4b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment