[PATCH -next] drm/hisilicon/hibmc: Fix wrong pointer passed to PTR_ERR()

Gustavo Padovan gustavo at padovan.org
Mon Jan 16 21:35:51 UTC 2017


Hi Wei,

2017-01-12 Wei Yongjun <weiyj.lk at gmail.com>:

> From: Wei Yongjun <weiyongjun1 at huawei.com>
> 
> 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 at huawei.com>

Reviewed-by: Gustavo Padovan <gustavo.padovan at collabora.com>

Gustavo


More information about the dri-devel mailing list