lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1476720639.2488.47.camel@pengutronix.de>
Date:   Mon, 17 Oct 2016 18:10:39 +0200
From:   Philipp Zabel <p.zabel@...gutronix.de>
To:     Wei Yongjun <weiyj.lk@...il.com>
Cc:     Wei Yongjun <weiyongjun1@...wei.com>,
        dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next] gpu: ipu-v3: Use ERR_CAST instead of
 ERR_PTR(PTR_ERR())

Am Mittwoch, den 21.09.2016, 15:12 +0000 schrieb Wei Yongjun:
> From: Wei Yongjun <weiyongjun1@...wei.com>
> 
> Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)).
> 
> Generated by: scripts/coccinelle/api/err_cast.cocci
> 
> Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
> ---
>  drivers/gpu/ipu-v3/ipu-image-convert.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/ipu-v3/ipu-image-convert.c b/drivers/gpu/ipu-v3/ipu-image-convert.c
> index 2ba7d43..805b6fa 100644
> --- a/drivers/gpu/ipu-v3/ipu-image-convert.c
> +++ b/drivers/gpu/ipu-v3/ipu-image-convert.c
> @@ -1617,7 +1617,7 @@ ipu_image_convert(struct ipu_soc *ipu, enum ipu_ic_task ic_task,
>  	ctx = ipu_image_convert_prepare(ipu, ic_task, in, out, rot_mode,
>  					complete, complete_context);
>  	if (IS_ERR(ctx))
> -		return ERR_PTR(PTR_ERR(ctx));
> +		return ERR_CAST(ctx);
>  
>  	run = kzalloc(sizeof(*run), GFP_KERNEL);
>  	if (!run) {

Applied, thanks.

regards
Philipp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ