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

Commit 812c369d authored by Pekka Paalanen's avatar Pekka Paalanen Committed by Dave Airlie
Browse files

drm: fix _DRM_GEM addmap error message



Fix the error message: this is add, not rm.
Move the closing brace to proper spot: _DRM_GEM branch should not be
included in the block.

Signed-off-by: default avatarPekka Paalanen <pq@iki.fi>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 9b1596af
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -310,10 +310,10 @@ static int drm_addmap_core(struct drm_device * dev, resource_size_t offset,
			  (unsigned long long)map->offset, map->size);

		break;
	}
	case _DRM_GEM:
		DRM_ERROR("tried to rmmap GEM object\n");
		DRM_ERROR("tried to addmap GEM object\n");
		break;
	}
	case _DRM_SCATTER_GATHER:
		if (!dev->sg) {
			kfree(map);