Skip to content
Commit ebe180d3 authored by Yang Yingliang's avatar Yang Yingliang Committed by Thomas Zimmermann
Browse files

drm/gma500: Fix wrong pointer passed to PTR_ERR()



PTR_ERR() should access the value just tested by IS_ERR(),
otherwise the wrong error code will be returned.

Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Fixes: c2f17e60 ("drm/gma500: Embed struct drm_device in struct drm_psb_private")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210924094040.3631675-1-yangyingliang@huawei.com
parent db656849
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment