Re: [PATCH -next] drm/hisilicon/hibmc: Fix wrong pointer passed to PTR_ERR()
From: Gustavo Padovan
Date: Mon Jan 16 2017 - 16:36:16 EST
Hi Wei,
2017-01-12 Wei Yongjun <weiyj.lk@xxxxxxxxx>:
> From: Wei Yongjun <weiyongjun1@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>
Reviewed-by: Gustavo Padovan <gustavo.padovan@xxxxxxxxxxxxx>
Gustavo