mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
Merge "msm: cvp: Fix NULL pointer error when DEBUG_FS is disabled"
This commit is contained in:
commit
8c3d768ae8
1 changed files with 4 additions and 2 deletions
|
|
@ -349,7 +349,8 @@ struct dentry *msm_cvp_debugfs_init_core(struct msm_cvp_core *core,
|
|||
|
||||
snprintf(debugfs_name, MAX_DEBUGFS_NAME, "core%d", core->id);
|
||||
dir = debugfs_create_dir(debugfs_name, parent);
|
||||
if (!dir) {
|
||||
if (IS_ERR_OR_NULL(dir)) {
|
||||
dir = NULL;
|
||||
dprintk(CVP_ERR, "Failed to create debugfs for msm_cvp\n");
|
||||
goto failed_create_dir;
|
||||
}
|
||||
|
|
@ -495,7 +496,8 @@ struct dentry *msm_cvp_debugfs_init_inst(struct msm_cvp_inst *inst,
|
|||
idata->inst = inst;
|
||||
|
||||
dir = debugfs_create_dir(debugfs_name, parent);
|
||||
if (!dir) {
|
||||
if (IS_ERR_OR_NULL(dir)) {
|
||||
dir = NULL;
|
||||
dprintk(CVP_ERR, "Failed to create debugfs for msm_cvp\n");
|
||||
goto failed_create_dir;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue