Merge pull request #2955 from brooksytech/dev
RK3588: Memory leak kernel fix patch. Thanks @Spooky
This commit is contained in:
commit
a524b24647
1 changed files with 23 additions and 0 deletions
|
@ -0,0 +1,23 @@
|
|||
From 9e1e2c5cc83eff4339b34fb600e88a39563aba93 Mon Sep 17 00:00:00 2001
|
||||
From: Joshua Riek <jjriek@verizon.net>
|
||||
Date: Fri, 1 Mar 2024 08:34:05 -0500
|
||||
Subject: [PATCH] drm: set DRM_RENDER_ALLOW flag on DRM_IOCTL_MODE_DESTROY_DUMB
|
||||
ioctl
|
||||
|
||||
---
|
||||
drivers/gpu/drm/drm_ioctl.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/drivers/gpu/drm/drm_ioctl.c b/drivers/gpu/drm/drm_ioctl.c
|
||||
index 0dc0d2de8857..4b839f17f315 100644
|
||||
--- a/drivers/gpu/drm/drm_ioctl.c
|
||||
+++ b/drivers/gpu/drm/drm_ioctl.c
|
||||
@@ -682,7 +682,7 @@ static const struct drm_ioctl_desc drm_ioctls[] = {
|
||||
DRM_IOCTL_DEF(DRM_IOCTL_MODE_DIRTYFB, drm_mode_dirtyfb_ioctl, DRM_MASTER),
|
||||
DRM_IOCTL_DEF(DRM_IOCTL_MODE_CREATE_DUMB, drm_mode_create_dumb_ioctl, DRM_RENDER_ALLOW),
|
||||
DRM_IOCTL_DEF(DRM_IOCTL_MODE_MAP_DUMB, drm_mode_mmap_dumb_ioctl, 0),
|
||||
- DRM_IOCTL_DEF(DRM_IOCTL_MODE_DESTROY_DUMB, drm_mode_destroy_dumb_ioctl, 0),
|
||||
+ DRM_IOCTL_DEF(DRM_IOCTL_MODE_DESTROY_DUMB, drm_mode_destroy_dumb_ioctl, DRM_RENDER_ALLOW),
|
||||
DRM_IOCTL_DEF(DRM_IOCTL_MODE_OBJ_GETPROPERTIES, drm_mode_obj_get_properties_ioctl, 0),
|
||||
DRM_IOCTL_DEF(DRM_IOCTL_MODE_OBJ_SETPROPERTY, drm_mode_obj_set_property_ioctl, DRM_MASTER),
|
||||
DRM_IOCTL_DEF(DRM_IOCTL_MODE_CURSOR2, drm_mode_cursor2_ioctl, DRM_MASTER),
|
Loading…
Reference in a new issue