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

Commit dc618db7 authored by Thierry Reding's avatar Thierry Reding
Browse files

drm/tegra: Fix return value



Return NULL instead of 0 in host1x_bo_lookup().

Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent a191e48d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -84,7 +84,7 @@ static struct host1x_bo *host1x_bo_lookup(struct drm_device *drm,

	gem = drm_gem_object_lookup(drm, file, handle);
	if (!gem)
		return 0;
		return NULL;

	mutex_lock(&drm->struct_mutex);
	drm_gem_object_unreference(gem);