提交 dc618db7 编写于 作者: T Thierry Reding

drm/tegra: Fix return value

Return NULL instead of 0 in host1x_bo_lookup().
Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
上级 a191e48d
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册