summaryrefslogtreecommitdiff
path: root/lib/prime_numbers.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2017-01-12 18:19:21 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2017-01-23 11:02:28 +0300
commitbdf6f135973acb409b3ec5a6214fb597670a0bc0 (patch)
tree9d3da9243bad18a8711c61a50d61246708489387 /lib/prime_numbers.c
parent899cc5f14054267b89ebeef4d3c749473ab28eed (diff)
downloadlinux-bdf6f135973acb409b3ec5a6214fb597670a0bc0.tar.xz
drm/hisilicon/hibmc: 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. Fixes: d1667b86795a ("drm/hisilicon/hibmc: Add support for frame buffer") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20170112151921.16538-1-weiyj.lk@gmail.com
Diffstat (limited to 'lib/prime_numbers.c')
0 files changed, 0 insertions, 0 deletions