disp: msm: sde: null check for kms device
Check if kms device objects exist before attempting to create memory space. Change-Id: Idc0cbfd0ce116dab8005f72ba231dcb8c82254ca Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
This commit is contained in:
@@ -2934,6 +2934,9 @@ static int _sde_kms_mmu_init(struct sde_kms *sde_kms)
|
|||||||
int i, ret;
|
int i, ret;
|
||||||
int early_map = 0;
|
int early_map = 0;
|
||||||
|
|
||||||
|
if (!sde_kms || !sde_kms->dev || !sde_kms->dev->dev)
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
for (i = 0; i < MSM_SMMU_DOMAIN_MAX; i++) {
|
for (i = 0; i < MSM_SMMU_DOMAIN_MAX; i++) {
|
||||||
struct msm_gem_address_space *aspace;
|
struct msm_gem_address_space *aspace;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user