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

Commit 203fc57f authored by Vasantha Balla's avatar Vasantha Balla Committed by Gerrit - the friendly Code Review server
Browse files

vidc_3x: Fix crash in user build



Added NULL check to fix crash in user build.

Change-Id: Id6883dcd65ebb9780fba8784950d75c0bbfe6937
Signed-off-by: default avatarVasantha Balla <vballa@codeaurora.org>
parent da2a0248
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -479,6 +479,9 @@ void msm_vidc_debugfs_deinit_inst(struct msm_vidc_inst *inst)
		return;

	dentry = inst->debugfs_root;
	if (IS_ERR_OR_NULL(dentry))
		return;

	if (dentry->d_inode) {
		dprintk(VIDC_INFO, "Destroy %pK\n", dentry->d_inode->i_private);
		kfree(dentry->d_inode->i_private);