linux/drivers/gpu/drm/i915
Andi Shyti 8d42c563e4 drm/i915/gt: Use the correct error value when kernel_context() fails
commit 40023959db upstream.

kernel_context() returns an error pointer. Use pointer-error
conversion functions to evaluate its return value, rather than
checking for a '0' return.

Fixes: eb5c10cbbc ("drm/i915: Remove I915_USER_PRIORITY_SHIFT")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: <stable@vger.kernel.org> # v5.13+
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Acked-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230526124138.2006110-1-andi.shyti@linux.intel.com
(cherry picked from commit edad9ee94f)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-06-14 11:15:25 +02:00
..
display drm/i915: Use 18 fast wake AUX sync len 2023-06-14 11:15:18 +02:00
gem drm/i915/selftests: Add some missing error propagation 2023-06-14 11:15:21 +02:00
gt drm/i915/gt: Use the correct error value when kernel_context() fails 2023-06-14 11:15:25 +02:00
gvt drm/i915/gvt: fix vgpu debugfs clean in remove 2023-01-12 12:02:53 +01:00
pxp Merge tag 'drm-intel-gt-next-2022-09-16' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2022-09-21 07:42:47 +10:00
selftests drm/i915/selftests: Stop using kthread_stop() 2023-06-14 11:15:21 +02:00
.gitignore
i915_active_types.h
i915_active.c drm/i915/active: Fix missing debug object activation 2023-03-30 12:49:28 +02:00
i915_active.h
i915_cmd_parser.c
i915_cmd_parser.h
i915_config.c
i915_debugfs_params.c
i915_debugfs_params.h
i915_debugfs.c Merge tag 'drm-intel-next-2022-09-16-1' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2022-09-21 07:51:00 +10:00
i915_debugfs.h
i915_deps.c
i915_deps.h
i915_driver.c drm/i915: Remove unused variable 2023-01-24 07:24:40 +01:00
i915_driver.h
i915_drm_client.c
i915_drm_client.h
i915_drv.h drm/i915/display: remove ipc_enabled from struct drm_i915_private 2022-09-27 11:05:15 +01:00
i915_file_private.h
i915_fixed.h
i915_gem_evict.c drm/i915: improve the catch-all evict to handle lock contention 2023-01-07 11:12:03 +01:00
i915_gem_evict.h drm/i915: improve the catch-all evict to handle lock contention 2023-01-07 11:12:03 +01:00
i915_gem_gtt.c treewide: use get_random_u32() when possible 2022-10-11 17:42:58 -06:00
i915_gem_gtt.h
i915_gem_ww.c
i915_gem_ww.h
i915_gem.c drm/i915: Encapsulate lmem rpm stuff in intel_runtime_pm 2022-12-31 13:32:06 +01:00
i915_gem.h Merge tag 'drm-intel-next-2022-09-16-1' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2022-09-21 07:51:00 +10:00
i915_getparam.c drm/i915: move overlay to display.overlay 2022-08-29 13:24:26 +03:00
i915_getparam.h
i915_gpu_error.c drm/i915: Fix up locking around dumping requests lists 2023-02-09 11:28:07 +01:00
i915_gpu_error.h drm/i915/guc: Rename GuC register state capture node to be more obvious 2023-03-30 12:49:06 +02:00
i915_ioc32.c
i915_ioc32.h
i915_ioctl.c
i915_ioctl.h
i915_iosf_mbi.h
i915_irq.c drm/i915/dsi: add support for ICL+ native MIPI GPIO sequence 2023-01-12 12:02:57 +01:00
i915_irq.h
i915_memcpy.c
i915_memcpy.h
i915_mitigations.c
i915_mitigations.h
i915_mm.c
i915_mm.h
i915_module.c
i915_params.c drm/i915: Expand force_probe to block probe of devices as well. 2023-05-24 17:32:33 +01:00
i915_params.h drm/i915/guc: Remove log size module parameters 2022-08-29 15:02:48 +03:00
i915_pci.c drm/i915: taint kernel when force probing unsupported devices 2023-05-24 17:32:33 +01:00
i915_pci.h drm/i915: Sanitycheck PCI BARs 2022-08-10 13:11:17 +03:00
i915_perf_oa_regs.h
i915_perf_types.h
i915_perf.c drm/i915: fix race condition UAF in i915_perf_add_config_ioctl 2023-04-13 16:55:36 +02:00
i915_perf.h
i915_pmu.c
i915_pmu.h
i915_priolist_types.h
i915_pvinfo.h
i915_query.c drm/i915/uapi: expose the avail tracking 2022-07-01 08:29:59 +01:00
i915_query.h
i915_reg_defs.h
i915_reg.h drm/i915/color: Fix typo for Plane CSC indexes 2023-05-17 11:53:47 +02:00
i915_request.c Revert "drm/i915: Hold reference to intel_context over life of i915_request" 2022-06-27 23:47:26 +05:30
i915_request.h drm/i915: Do not access rq->engine without a reference 2022-06-27 23:46:35 +05:30
i915_scatterlist.c drm/i915/ttm: fix 32b build 2022-07-17 14:53:47 -04:00
i915_scatterlist.h drm/i915: stop abusing swiotlb_max_segment 2022-10-31 12:32:04 +00:00
i915_scheduler_types.h
i915_scheduler.c
i915_scheduler.h
i915_selftest.h Revert "drm/i915/guc: Add delay to disable scheduling after pin count goes to zero" 2022-08-20 09:41:56 -07:00
i915_suspend.c
i915_suspend.h
i915_sw_fence_work.c
i915_sw_fence_work.h
i915_sw_fence.c drm/i915/fence: replace BUG_ON() with BUILD_BUG_ON() 2022-08-31 18:34:11 +03:00
i915_sw_fence.h drm/i915/fence: replace BUG_ON() with BUILD_BUG_ON() 2022-08-31 18:34:11 +03:00
i915_switcheroo.c drm/i915: Allow switching away via vga-switcheroo if uninitialized 2023-01-24 07:24:40 +01:00
i915_switcheroo.h
i915_syncmap.c
i915_syncmap.h
i915_sysfs.c
i915_sysfs.h
i915_tasklet.h
i915_trace_points.c
i915_trace.h
i915_ttm_buddy_manager.c drm/i915: Implement intersect/compatible functions 2022-08-22 15:35:45 +02:00
i915_ttm_buddy_manager.h drm/i915/uapi: expose the avail tracking 2022-07-01 08:29:59 +01:00
i915_user_extensions.c
i915_user_extensions.h
i915_utils.c
i915_utils.h drm/i915/utils: remove unused KBps/MBps/GBps macros 2022-08-23 15:38:30 +03:00
i915_vgpu.c
i915_vgpu.h
i915_vma_resource.c drm/i915/gt: Batch TLB invalidations 2022-08-08 14:06:55 -04:00
i915_vma_resource.h drm/i915/gt: Batch TLB invalidations 2022-08-08 14:06:55 -04:00
i915_vma_types.h drm/i915: Rename ggtt_view as gtt_view 2022-09-08 10:24:17 +01:00
i915_vma.c drm/i915: Reserve enough fence slot for i915_vma_unbind_async 2023-01-18 11:58:13 +01:00
i915_vma.h drm/i915: Rename ggtt_view as gtt_view 2022-09-08 10:24:17 +01:00
intel_device_info.c drm/i915: fix device info for devices without display 2022-09-27 11:05:26 +01:00
intel_device_info.h Merge tag 'drm-intel-next-2022-09-16-1' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2022-09-21 07:51:00 +10:00
intel_dram.c drm/i915/mtl: Fix dram info readout 2022-11-29 08:49:14 +00:00
intel_dram.h
intel_gvt_mmio_table.c drm pull for 6.1-rc1 2022-10-05 11:24:12 -07:00
intel_gvt.c
intel_gvt.h
intel_mchbar_regs.h drm/i915/guc/slpc: Allow SLPC to use efficient frequency 2022-08-24 09:17:15 -04:00
intel_memory_region.c drm/i915: remove intel_memory_region avail 2022-07-01 08:29:59 +01:00
intel_memory_region.h drm/i915: remove intel_memory_region avail 2022-07-01 08:29:59 +01:00
intel_pch.c drm/i915/mtl: Add PCH support 2022-08-25 12:50:40 -07:00
intel_pch.h drm/i915/mtl: Add PCH support 2022-08-25 12:50:40 -07:00
intel_pci_config.h drm/i915: Use of BARs names instead of numbers 2022-08-10 13:11:14 +03:00
intel_pcode.c
intel_pcode.h
intel_pm_types.h
intel_pm.c Merge tag 'drm-intel-next-2022-09-16-1' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2022-09-21 07:51:00 +10:00
intel_pm.h drm/i915: Extract skl_watermark.c 2022-09-09 16:50:33 +03:00
intel_region_ttm.c drm/i915/ttm: fix 32b build 2022-07-17 14:53:47 -04:00
intel_region_ttm.h drm/i915/ttm: fix 32b build 2022-07-17 14:53:47 -04:00
intel_runtime_pm.c drm/i915/dgfx: Grab wakeref at i915_ttm_unmap_virtual 2022-12-31 13:32:06 +01:00
intel_runtime_pm.h drm/i915/dgfx: Grab wakeref at i915_ttm_unmap_virtual 2022-12-31 13:32:06 +01:00
intel_sbi.c
intel_sbi.h
intel_step.c
intel_step.h
intel_uncore.c Merge tag 'drm-intel-gt-next-2022-09-16' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2022-09-21 07:42:47 +10:00
intel_uncore.h drm/i915/uncore: Add GSI offset to uncore 2022-09-12 15:23:12 +03:00
intel_wakeref.c
intel_wakeref.h
intel_wopcm.c
intel_wopcm.h
Kconfig drm/i915: taint kernel when force probing unsupported devices 2023-05-24 17:32:33 +01:00
Kconfig.debug
Kconfig.profile
Kconfig.unstable
Makefile drm/i915/tgl+: Add locking around DKL PHY register accesses 2022-10-31 12:31:57 +00:00
TODO.txt
vlv_sideband_reg.h
vlv_sideband.c
vlv_sideband.h
vlv_suspend.c
vlv_suspend.h