Skip to contentSkip to conversation

drm: support up to 128 drm devices

PATCH New James Zhu 1 participant 1 message Jun 30, 2023

Subsystems (2)
lore
Share & tools
lore

James Zhu

author
#0 lore raw

PATCH 1/1 drm: support up to 128 drm devices

From: Christian König <[email protected]>

This makes room for up to 128 DRM devices.

---
 drivers/gpu/drm/drm_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_drv.c +1 -1
index 73b845a75d52..0d55c64444f5 100644
@@ -137,7 +137,7 @@ static int drm_minor_alloc(struct drm_device *dev, unsigned int type)
 		r = idr_alloc(&drm_minors_idr,
 			NULL,
 			64 * type,
-			64 * (type + 1),
+			64 * (type + 2),
 			GFP_NOWAIT);
 		spin_unlock_irqrestore(&drm_minor_lock, flags);
 	}
Signature · 1 line
2.34.1