drm/panfrost: Fix runtime PM imbalance on error
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Fri, 22 May 2020 13:41:09 +0000 (21:41 +0800)
committerSteven Price <steven.price@arm.com>
Fri, 19 Jun 2020 10:00:02 +0000 (11:00 +0100)
commit64092598c4566dc80a71ca57396dc36fdbf3da4b
treeb2fba36133b8188f8ad93b6c0d591f9fc4e6005f
parentb99773ef258e628bd53cab22d450a755b73b4d55
drm/panfrost: Fix runtime PM imbalance on error

The caller expects panfrost_job_hw_submit() to increase
runtime PM usage counter. The refcount decrement on the
error branch of WARN_ON() will break the counter balance
and needs to be removed.

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200522134109.27204-1-dinghao.liu@zju.edu.cn
drivers/gpu/drm/panfrost/panfrost_job.c