aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2018-03-04 12:45:51 +0000
committerLinus Walleij <[email protected]>2018-03-27 13:18:20 +0000
commit6cb9215baeb9c1ed336a5e8905f7ad7c4698acc9 (patch)
tree2326844d2fc8c9504fc49fdd27d4f0ad2234af1d /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentgpio: pca953x: add compatibility for pcal6524 and pcal9555a (diff)
downloadkernel-6cb9215baeb9c1ed336a5e8905f7ad7c4698acc9.tar.gz
kernel-6cb9215baeb9c1ed336a5e8905f7ad7c4698acc9.zip
gpio: mockup: fix a potential crash when creating debugfs entries
If we failed to create the top debugfs directory, we must not try to create the child nodes. We currently only check if gpio_mockup_dbg_dir is not NULL, but it can also contain an errno if debugfs is disabled in build options. Use IS_ERR_OR_NULL() instead. Signed-off-by: Bartosz Golaszewski <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions