Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1560079

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

From Gustavo Padovan <gustavo@padovan.org>
Newsgroups linux.kernel
Subject Re: [PATCH -next] drm/hisilicon/hibmc: Fix wrong pointer passed to PTR_ERR()
Date 2017-01-16 22:40 +0100
Message-ID <t0naq-6mU-9@gated-at.bofh.it> (permalink)
References <sYPu9-5B2-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Wei,

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

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

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

Gustavo

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH -next] drm/hisilicon/hibmc: Fix wrong pointer passed to PTR_ERR() Wei Yongjun <weiyj.lk@gmail.com> - 2017-01-12 16:30 +0100
  Re: [PATCH -next] drm/hisilicon/hibmc: Fix wrong pointer passed to  PTR_ERR() Gustavo Padovan <gustavo@padovan.org> - 2017-01-16 22:40 +0100

csiph-web