Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24f40032 authored by Kristian Høgsberg's avatar Kristian Høgsberg Committed by Dave Airlie
Browse files

drm: fix minor number range calculation



Currently, both ranges overlap. Fix the limits so both ranges are mutually
exclusive. Also use the occasion to convert whitespaces to tabs.

Signed-off-by: default avatarKristian Høgsberg <krh@bitplanet.net>
(fixed up tabs and adjust commit-msg accordingly)
Signed-off-by: default avatarDavid Herrmann <dh.herrmann@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 90254ac0
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -114,10 +114,10 @@ static int drm_minor_get_id(struct drm_device *dev, int type)

	if (type == DRM_MINOR_CONTROL) {
		base += 64;
                limit = base + 127;
		limit = base + 63;
	} else if (type == DRM_MINOR_RENDER) {
		base += 128;
                limit = base + 255;
		limit = base + 63;
	}

	mutex_lock(&dev->struct_mutex);