linux_dsm_epyc7002/drivers/gpu/drm/amd/amdgpu
Dan Carpenter d344b21bf4 drm/amd/amdgpu: Fix debugfs error handling
The error handling is wrong and "ent" could be NULL we when dereference
it to get "ent->d_inode".

The thing is that normally debugfs_create_file() is not supposed to
require (or have) any error handling.  That function does return error
pointers if debugfs is turned off but we know it's enable here.  When
it's enabled, then it returns NULL on error.

So what I did was I stripped out all the error handling except around
the i_size_write().  I could have just used a NULL check instead of an
IS_ERR_OR_NULL() but I figured this was more clear because that way you
don't have to look at the surrounding code to see whether debugfs is
enabled or not.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-10-16 15:10:34 -05:00
..
amdgpu_acp.c drm/amgpu/acp: Implement set_powergating_state for acp 2018-08-27 11:09:44 -05:00
amdgpu_acp.h
amdgpu_acpi.c drm/amdgpu: Suppress keypresses from ACPI_VIDEO events 2018-10-10 14:49:41 -05:00
amdgpu_afmt.c
amdgpu_amdkfd_fence.c drm/amdgpu: Remove unecessary dma_fence_ops 2018-07-03 13:13:08 +02:00
amdgpu_amdkfd_gfx_v7.c drm/amd: Interface change to support 64 bit page_table_base 2018-09-26 21:09:17 -05:00
amdgpu_amdkfd_gfx_v8.c drm/amd: Interface change to support 64 bit page_table_base 2018-09-26 21:09:17 -05:00
amdgpu_amdkfd_gfx_v9.c drm/amd: Interface change to support 64 bit page_table_base 2018-09-26 21:09:17 -05:00
amdgpu_amdkfd_gpuvm.c drm/amd: Interface change to support 64 bit page_table_base 2018-09-26 21:09:17 -05:00
amdgpu_amdkfd.c drm/amdgpu: Add vega20 support on kfd probe 2018-09-26 21:09:17 -05:00
amdgpu_amdkfd.h drm/amd: Interface change to support 64 bit page_table_base 2018-09-26 21:09:17 -05:00
amdgpu_atombios.c drm/amdgpu: move display definitions into amdgpu_display header 2018-08-27 11:10:04 -05:00
amdgpu_atombios.h
amdgpu_atomfirmware.c drm/amdgpu: fix unknown vram mem type for vega20 2018-09-19 12:37:39 -05:00
amdgpu_atomfirmware.h drm/amdgpu/atomfirmware: add parser for gfx_info table 2018-05-17 10:13:22 -05:00
amdgpu_atpx_handler.c BackMerge v4.18-rc7 into drm-next 2018-07-30 10:39:22 +10:00
amdgpu_benchmark.c drm/amdgpu: allocate gart memory when it's required (v3) 2018-07-10 14:15:58 -05:00
amdgpu_bios.c
amdgpu_bo_list.c drm/amdgpu: remove amdgpu_bo_list_entry.robj (v2) 2018-09-13 15:14:12 -05:00
amdgpu_bo_list.h drm/amdgpu: remove amdgpu_bo_list_entry.robj (v2) 2018-09-13 15:14:12 -05:00
amdgpu_cgs.c drm/amdgpu: add new polaris pci id 2018-09-19 22:35:23 -05:00
amdgpu_connectors.c drm/amdgpu: move display definitions into amdgpu_display header 2018-08-27 11:10:04 -05:00
amdgpu_connectors.h
amdgpu_cs.c This is the 4.19-rc5 stable release 2018-09-27 11:06:46 +10:00
amdgpu_ctx.c drm/amdgpu: amdgpu_ctx_add_fence can't fail 2018-08-27 15:12:10 -05:00
amdgpu_ctx.h drm/amdgpu: amdgpu_ctx_add_fence can't fail 2018-08-27 15:12:10 -05:00
amdgpu_debugfs.c drm/amd/amdgpu: Fix debugfs error handling 2018-10-16 15:10:34 -05:00
amdgpu_debugfs.h
amdgpu_device.c drm/amdgpu: Load fw between hw_init/resume_phase1 and phase2 2018-10-10 14:49:21 -05:00
amdgpu_display.c drm/amdgpu: allocate gart memory when it's required (v3) 2018-07-10 14:15:58 -05:00
amdgpu_display.h drm/amdgpu: move display definitions into amdgpu_display header 2018-08-27 11:10:04 -05:00
amdgpu_dpm.c drm/amdgpu: use pcie functions for link width and speed 2018-07-05 16:39:59 -05:00
amdgpu_dpm.h drm/amdgpu: Add fan RPM setting via sysfs 2018-10-09 17:04:59 -05:00
amdgpu_drv.c drm/amdgpu: added AMD GPU instance counting V2 2018-10-09 16:59:33 -05:00
amdgpu_drv.h
amdgpu_encoders.c drm/amdgpu: move display definitions into amdgpu_display header 2018-08-27 11:10:04 -05:00
amdgpu_fb.c drm/amdgpu: move gem definitions into amdgpu_gem header 2018-08-27 11:09:56 -05:00
amdgpu_fence.c drm/amdgpu: Move fence SW fallback warning v3 2018-09-26 21:09:21 -05:00
amdgpu_gart.c drm/amdgpu: remove gart.table_addr 2018-08-27 11:11:19 -05:00
amdgpu_gart.h drm/amdgpu: remove gart.table_addr 2018-08-27 11:11:19 -05:00
amdgpu_gds.h drm/amdgpu: fix up GDS/GWS/OA shifting 2018-09-19 12:38:48 -05:00
amdgpu_gem.c drm/amdgpu: fix up GDS/GWS/OA shifting 2018-09-19 12:38:48 -05:00
amdgpu_gem.h drm/amdgpu: move gem definitions into amdgpu_gem header 2018-08-27 11:09:56 -05:00
amdgpu_gfx.c drm/amdgpu: Delay 100ms to enable gfx off feature 2018-08-27 11:10:00 -05:00
amdgpu_gfx.h drm/amdgpu: Move gfx flag in_suspend to adev 2018-10-09 17:05:33 -05:00
amdgpu_gmc.c drm/amdgpu: Limit the max mc address to hole start 2018-10-10 14:48:02 -05:00
amdgpu_gmc.h drm/amdgpu : Generate XGMI topology info from driver level 2018-09-10 22:47:52 -05:00
amdgpu_gtt_mgr.c drm/amdgpu: revert "stop using gart_start as offset for the GTT domain" 2018-09-14 10:05:42 -05:00
amdgpu_i2c.c
amdgpu_i2c.h
amdgpu_ib.c drm/amdgpu: skip IB tests for KIQ in general 2018-10-09 17:06:12 -05:00
amdgpu_ids.c drm/amdgpu: Fix typo in amdgpu_vmid_mgr_init 2018-10-16 15:08:08 -05:00
amdgpu_ids.h
amdgpu_ih.c drm/amdgpu: move more interrupt processing into amdgpu_irq.c 2018-09-26 21:09:22 -05:00
amdgpu_ih.h drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
amdgpu_ioc32.c
amdgpu_irq.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
amdgpu_irq.h drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
amdgpu_job.c drm/amdgpu: Fix SDMA TO after GPU reset v3 2018-09-11 16:30:48 -05:00
amdgpu_job.h drm/amdgpu: remove job->adev (v2) 2018-07-17 14:18:28 -05:00
amdgpu_kms.c drm/amdgpu: added AMD GPU instance counting V2 2018-10-09 16:59:33 -05:00
amdgpu_mn.c mm, oom: distinguish blockable mode for mmu notifiers 2018-08-22 10:52:44 -07:00
amdgpu_mn.h
amdgpu_mode.h
amdgpu_object.c drm/amdgpu: fix up GDS/GWS/OA shifting 2018-09-19 12:38:48 -05:00
amdgpu_object.h drm/amdgpu: fix shadow BO restoring 2018-09-19 12:38:41 -05:00
amdgpu_pll.c
amdgpu_pll.h
amdgpu_pm.c drm/amdgpu: Always enable fan sensors for read 2018-10-09 17:05:12 -05:00
amdgpu_pm.h
amdgpu_prime.c drm/amdgpu: Style fixes to PRIME code documentation 2018-09-14 09:37:28 -05:00
amdgpu_psp.c drm/amdgpu: Remove amdgpu_ucode_fini_bo 2018-10-10 14:49:01 -05:00
amdgpu_psp.h drm/amdgpu : Add psp function interfaces for XGMI support 2018-09-10 22:47:35 -05:00
amdgpu_ring.c drm/amdgpu: add ring soft recovery v4 2018-08-27 15:10:07 -05:00
amdgpu_ring.h drm/amdgpu: Move fence SW fallback warning v3 2018-09-26 21:09:21 -05:00
amdgpu_sa.c drm/amdgpu: Initialize fences array entries in amdgpu_sa_bo_next_hole 2018-09-14 09:37:17 -05:00
amdgpu_sched.c drm/amdgpu: fix incorrect use of drm_file->pid 2018-08-21 14:19:18 -05:00
amdgpu_sched.h
amdgpu_sdma.c drm/amdgpu: move sdma definitions into amdgpu_sdma header 2018-08-27 11:09:55 -05:00
amdgpu_sdma.h drm/amdgpu: fix incorrect use of amdgpu_irq_add_id in si_dma.c 2018-10-09 17:07:05 -05:00
amdgpu_sync.c
amdgpu_sync.h
amdgpu_test.c drm/amdgpu: allocate gart memory when it's required (v3) 2018-07-10 14:15:58 -05:00
amdgpu_trace_points.c drm/amdgpu: correct SPDX identifier in amdgpu_trace_points.c 2018-10-15 16:16:06 -05:00
amdgpu_trace.h drm/amdgpu: drop extra newline in amdgpu_iv trace 2018-09-26 21:09:20 -05:00
amdgpu_ttm.c drm/amdgpu: move reserving GDS/GWS/OA into common code 2018-09-19 12:39:02 -05:00
amdgpu_ttm.h drm/amdgpu: add amdgpu_gmc_get_pde_for_bo helper v2 2018-08-27 15:19:42 -05:00
amdgpu_ucode.c drm/amdgpu: remove set but not used variable 'header' 2018-10-10 14:49:43 -05:00
amdgpu_ucode.h drm/amdgpu: Remove amdgpu_ucode_fini_bo 2018-10-10 14:49:01 -05:00
amdgpu_uvd.c drm/amdgpu: Use kvmalloc for allocating UVD/VCE/VCN BO backup memory 2018-08-16 12:59:11 -05:00
amdgpu_uvd.h drm/amdgpu/uvd: UVD entity initialization relys on ring initialization 2018-08-13 17:20:10 -05:00
amdgpu_vce.c drm/amdgpu: Fix vce work queue was not cancelled when suspend 2018-09-27 10:01:20 -05:00
amdgpu_vce.h drm/amdgpu/vce: VCE entity initialization relies on ring initializtion 2018-08-13 17:21:29 -05:00
amdgpu_vcn.c drm/amdgpu/vcn:Correct VCN cache window definition 2018-10-09 17:07:39 -05:00
amdgpu_vcn.h drm/amdgpu/vcn:Correct VCN cache window definition 2018-10-09 17:07:39 -05:00
amdgpu_vf_error.c
amdgpu_vf_error.h
amdgpu_virt.c drm/amdgpu: correctly sign extend 48bit addresses v3 2018-09-10 22:41:24 -05:00
amdgpu_virt.h
amdgpu_vm.c drm/amdgpu: fix parameter documentation for amdgpu_vm_free_pts 2018-09-19 12:35:01 -05:00
amdgpu_vm.h drm/amdgpu: use a single linked list for amdgpu_vm_bo_base 2018-09-13 15:14:12 -05:00
amdgpu_vram_mgr.c drm/amdgpu: try allocating VRAM as power of two 2018-09-12 16:28:28 -05:00
amdgpu_xgmi.c drm/amdgpu : Generate XGMI topology info from driver level 2018-09-10 22:47:52 -05:00
amdgpu.h drm/amdgpu: Move gfx flag in_suspend to adev 2018-10-09 17:05:33 -05:00
atom.c Revert "drm/amdgpu: avoid sleep while executing atombios table (V2)" 2018-07-05 16:38:27 -05:00
atom.h
atombios_crtc.c
atombios_crtc.h
atombios_dp.c
atombios_dp.h
atombios_encoders.c drm/amdgpu: move display definitions into amdgpu_display header 2018-08-27 11:10:04 -05:00
atombios_encoders.h
atombios_i2c.c
atombios_i2c.h
ci_dpm.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
ci_dpm.h
ci_smc.c
cik_dpm.h
cik_ih.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
cik_ih.h
cik_sdma.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
cik_sdma.h
cik.c drm/amdgpu: Change SI/CI gfx/sdma/smu init sequence 2018-10-10 14:48:11 -05:00
cik.h
cikd.h
clearstate_ci.h
clearstate_defs.h
clearstate_gfx9.h
clearstate_si.h
clearstate_vi.h
cz_ih.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
cz_ih.h
dce_v6_0.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
dce_v6_0.h
dce_v8_0.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
dce_v8_0.h
dce_v10_0.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
dce_v10_0.h
dce_v11_0.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
dce_v11_0.h
dce_virtual.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
dce_virtual.h
df_v1_7.c drm/amdgpu: add a df 1.7 implementation of enable_ecc_force_par_wr_rmw 2018-05-23 23:51:21 -05:00
df_v1_7.h
df_v3_6.c drm/amdgpu/df: fix potential array out-of-bounds read 2018-06-01 09:45:05 -05:00
df_v3_6.h drm/amdgpu/df: implement df v3_6 callback functions (v2) 2018-05-18 16:08:15 -05:00
emu_soc.c
gfx_v6_0.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
gfx_v6_0.h
gfx_v7_0.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
gfx_v7_0.h
gfx_v8_0.c drm/amdgpu: Load fw between hw_init/resume_phase1 and phase2 2018-10-10 14:49:21 -05:00
gfx_v8_0.h
gfx_v9_0.c drm/amdgpu: Update gc_9_0 golden settings. 2018-10-16 15:09:53 -05:00
gfx_v9_0.h
gfxhub_v1_0.c drm/amdgpu: fix the page fault of raven2 2018-09-26 21:09:20 -05:00
gfxhub_v1_0.h
gfxhub_v1_1.c drm/amdgpu/gmc9: Adjust GART and AGP location with xgmi offset (v2) 2018-09-10 22:47:34 -05:00
gfxhub_v1_1.h drm/amdgpu/gmc9: add a new gfxhub 1.1 helper for xgmi 2018-09-10 22:46:22 -05:00
gmc_v6_0.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
gmc_v6_0.h
gmc_v7_0.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
gmc_v7_0.h
gmc_v8_0.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
gmc_v8_0.h
gmc_v9_0.c drm/amdgpu: make function pointers mandatory 2018-09-26 21:09:21 -05:00
gmc_v9_0.h
iceland_ih.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
iceland_ih.h
iceland_sdma_pkt_open.h
Kconfig drm/amdgpu: Merge amdkfd into amdgpu 2018-08-28 11:22:42 -05:00
kv_dpm.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
kv_dpm.h
kv_smc.c
Makefile drm/amdgpu : Generate XGMI topology info from driver level 2018-09-10 22:47:52 -05:00
mmhub_v1_0.c drm/amdgpu: fix the page fault of raven2 2018-09-26 21:09:20 -05:00
mmhub_v1_0.h drm/amdgpu: enable mmhub power gating 2018-09-14 09:35:44 -05:00
mmsch_v1_0.h
mxgpu_ai.c drm/amdgpu: cleanup GPU recovery check a bit (v2) 2018-08-27 11:11:16 -05:00
mxgpu_ai.h
mxgpu_vi.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
mxgpu_vi.h
nbio_v6_1.c
nbio_v6_1.h
nbio_v7_0.c Revert "drm/amdgpu: Add nbio support for vega20 (v2)" 2018-08-27 11:10:22 -05:00
nbio_v7_0.h
nbio_v7_4.c drm/amdgpu: add vega20 sriov capability detection 2018-09-19 22:32:21 -05:00
nbio_v7_4.h drm/amdgpu: Add nbio 7.4 support for vega20 (v3) 2018-08-27 11:10:23 -05:00
ObjectID.h drm/amdgpu: Add BRACKET_LAYOUT_ENUMs to ObjectID.h 2018-06-15 12:20:42 -05:00
ppsmc.h
psp_gfx_if.h drm/amdgpu: added support 2nd UVD instance 2018-08-27 11:10:49 -05:00
psp_v3_1.c drm/amdgpu: Add psp 11.0 support for vega20. (v2) 2018-08-27 11:10:34 -05:00
psp_v3_1.h
psp_v10_0.c drm/amdgpu: simplify Raven, Raven2, and Picasso handling 2018-09-14 09:38:03 -05:00
psp_v10_0.h
psp_v11_0.c drm/amdgpu: remove set but not used variable 'ring' in psp_v11_0_ring_stop 2018-10-10 14:49:42 -05:00
psp_v11_0.h drm/amdgpu: Add psp 11.0 support for vega20. (v2) 2018-08-27 11:10:34 -05:00
r600_dpm.h
sdma_v2_4.c drm/amdgpu: Remove the direct fw loading support for sdma2.4 2018-10-10 14:49:34 -05:00
sdma_v2_4.h
sdma_v3_0.c drm/amdgpu: Load fw between hw_init/resume_phase1 and phase2 2018-10-10 14:49:21 -05:00
sdma_v3_0.h
sdma_v4_0.c drm/amdgpu: update Vega20 SDMA golden setting 2018-10-16 15:08:40 -05:00
sdma_v4_0.h
si_dma.c drm/amdgpu: fix incorrect use of amdgpu_irq_add_id in si_dma.c 2018-10-09 17:07:05 -05:00
si_dma.h
si_dpm.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
si_dpm.h
si_enums.h drm/amdgpu: enable ABGR and XBGR formats (v2) 2018-08-27 11:10:19 -05:00
si_ih.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
si_ih.h
si_smc.c
si.c drm/amdgpu: Change SI/CI gfx/sdma/smu init sequence 2018-10-10 14:48:11 -05:00
si.h
sid.h drm/amdgpu: enable ABGR and XBGR formats (v2) 2018-08-27 11:10:19 -05:00
sislands_smc.h
soc15_common.h drm/amdgpu/soc15: fix warnings in register macro 2018-09-26 21:09:26 -05:00
soc15.c drm/amdgpu: Change AI gfx/sdma/smu init sequence 2018-10-10 14:48:18 -05:00
soc15.h drm/amdgpu: Add nbio 7.4 support for vega20 (v3) 2018-08-27 11:10:23 -05:00
soc15d.h drm/amdgpu: add jpeg packet defines to soc15d.h 2018-06-15 12:20:34 -05:00
tonga_ih.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
tonga_ih.h
tonga_sdma_pkt_open.h
uvd_v4_2.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
uvd_v4_2.h
uvd_v5_0.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
uvd_v5_0.h
uvd_v6_0.c drm/amdgpu: Refine uvd_v6/7_0_enc_get_destroy_msg 2018-10-09 17:04:38 -05:00
uvd_v6_0.h
uvd_v7_0.c drm/amdgpu: Refine uvd_v6/7_0_enc_get_destroy_msg 2018-10-09 17:04:38 -05:00
uvd_v7_0.h
vce_v2_0.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
vce_v2_0.h
vce_v3_0.c drm/amdgpu: move more defines into amdgpu_irq.h 2018-09-26 21:09:22 -05:00
vce_v3_0.h
vce_v4_0.c drm/amdgpu: Change VCE booting with firmware loaded by PSP 2018-08-27 11:10:44 -05:00
vce_v4_0.h
vcn_v1_0.c drm/amdgpu/vcn:Update SPG mode UVD status clear 2018-10-12 12:55:59 -05:00
vcn_v1_0.h
vega10_ih.c drm/amdgpu: cleanup amdgpu_ih.c 2018-09-26 21:09:21 -05:00
vega10_ih.h
vega10_reg_init.c drm/amdgpu: Add CLK IP base offset 2018-07-10 14:16:39 -05:00
vega10_sdma_pkt_open.h
vega20_reg_init.c drm/amdgpu: set correct base for THM/NBIF/MP1 IP 2018-08-21 14:16:50 -05:00
vi_dpm.h
vi.c drm/amdgpu: Change VI gfx/sdma/smu init sequence 2018-10-09 17:08:25 -05:00
vi.h
vid.h