drm/nouveau/debugfs: Fix check of pm_runtime_get_sync failure
authorYueHaibing <yuehaibing@huawei.com>
Thu, 28 Feb 2019 12:24:59 +0000 (20:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Apr 2019 07:15:59 +0000 (09:15 +0200)
commit181117a1b4f34aa406ef54b8e65bbb37e4a5703c
tree4ca76879fb0cc4d1a94a013f0f6023b1de2b37e4
parent276084f0e0170c343fb3d9f7594c116f8ae59f61
drm/nouveau/debugfs: Fix check of pm_runtime_get_sync failure

[ Upstream commit 909e9c9c428376e2a43d178ed4b0a2d5ba9cb7d3 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/nouveau/nouveau_debugfs.c