diff options
| author | Matthew Brost <matthew.brost@intel.com> | 2023-04-11 00:26:58 +0300 |
|---|---|---|
| committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-20 02:31:40 +0300 |
| commit | 67f2f0d7371709cb91d46d4c557aaa28b902674c (patch) | |
| tree | a45184f07789adb07e9468afa13960cb218d333d /scripts/cleanpatch | |
| parent | 0a12a612c870231172d30196e6245ea471fabaed (diff) | |
| download | linux-67f2f0d7371709cb91d46d4c557aaa28b902674c.tar.xz | |
drm/xe: Don't grab runtime PM ref in engine create IOCTL
A VM had a runtime PM ref, a engine can't be created without a VM, and
the engine holds a ref to the VM thus this is unnecessary. Beyond that
taking a ref in the engine create IOCTL and dropping it in the destroy
IOCTL is wrong as a user doesn't have to call the destroy IOCTL (e.g.
they can just kill the process or close the driver FD). If a user does
this PM refs are leaked.
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'scripts/cleanpatch')
0 files changed, 0 insertions, 0 deletions
