debugfs is intended for debugging only, and failures to create debugfs
entries should not affect normal operation.
Remove the check for debugfs_create_dir() in kfd_debugfs_add_process().
If debugfs entries cannot be created, continue without them instead of
reporting an unnecessary error.
Fixes: 325de6bf3328 ("drm/amdkfd: expose pasid of secondary contexts by debugfs")
Reported-by: Dan Carpenter <error27@gmail.com>
Cc: Zhu Lingshan <lingshan.zhu@amd.com>
Cc: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
entry->proc_dentry = debugfs_create_dir(name,
primary_entry->proc_dentry);
}
- if (IS_ERR_OR_NULL(entry->proc_dentry)) {
- ret = entry->proc_dentry ? PTR_ERR(entry->proc_dentry) : -ENOMEM;
- goto err_free_entry;
- }
list_add(&entry->list, &procs);
kfd_debugfs_create_pasid_files(p, entry->proc_dentry);