projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18ec3c1
)
drm/nouveau/debugfs: Fix check of pm_runtime_get_sync failure
author
YueHaibing
<yuehaibing@huawei.com>
Thu, 28 Feb 2019 12:24:59 +0000
(20:24 +0800)
committer
Ben Skeggs
<bskeggs@redhat.com>
Thu, 21 Mar 2019 23:57:58 +0000
(09:57 +1000)
pm_runtime_get_sync returns negative on failure.
Fixes: eaeb9010bb4b ("drm/nouveau/debugfs: Wake up GPU before doing any reclocking")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_debugfs.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_debugfs.c
b/drivers/gpu/drm/nouveau/nouveau_debugfs.c
index 88a52f6b39fe333df24c33dce9aef2535d6a1b09..7dfbbbc1beea6ad1f5fa10cd535bffa130badebe 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nouveau_debugfs.c
+++ b/
drivers/gpu/drm/nouveau/nouveau_debugfs.c
@@
-181,7
+181,7
@@
nouveau_debugfs_pstate_set(struct file *file, const char __user *ubuf,
}
ret = pm_runtime_get_sync(drm->dev);
- if (
IS_ERR_VALUE(ret)
&& ret != -EACCES)
+ if (
ret < 0
&& ret != -EACCES)
return ret;
ret = nvif_mthd(ctrl, NVIF_CONTROL_PSTATE_USER, &args, sizeof(args));
pm_runtime_put_autosuspend(drm->dev);