]> git.baikalelectronics.ru Git - kernel.git/commit
drm: self_refresh: Fix a reversed condition in drm_self_refresh_helper_cleanup()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 19 Jun 2019 10:01:41 +0000 (13:01 +0300)
committerSean Paul <seanpaul@chromium.org>
Wed, 19 Jun 2019 13:57:16 +0000 (09:57 -0400)
commit2878d6c53461f7bb3bcd0e0d017301044f8eab71
tree90487aeac169fee23868ebb781fe00733d646440
parentc7eedec560a4f72231d92a89c2273fa255219827
drm: self_refresh: Fix a reversed condition in drm_self_refresh_helper_cleanup()

This test is flipped around so it either leads to a memory leak or a
NULL dereference.

Fixes: 5984c6becf2a ("drm: Add helpers to kick off self refresh mode in drivers")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190619100141.GA28596@mwanda
drivers/gpu/drm/drm_self_refresh_helper.c