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: <201111082252.04069.rjw@sisk.pl>
Date:	Tue, 8 Nov 2011 22:52:03 +0100
From:	"Rafael J. Wysocki" <rjw@...k.pl>
To:	Thomas Meyer <thomas@...3r.de>
Cc:	Len Brown <len.brown@...el.com>, Pavel Machek <pavel@....cz>,
	"Greg Kroah-Hartman" <gregkh@...e.de>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] PM / OPP: Use ERR_CAST inlined function

On Tuesday, November 08, 2011, Thomas Meyer wrote:
> From: Thomas Meyer <thomas@...3r.de>
> 
>  Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
> 
>  The semantic patch that makes this change is available
>  in scripts/coccinelle/api/err_cast.cocci.
> 
>  More information about semantic patching is available at
>  http://coccinelle.lip6.fr/
> 
> Signed-off-by: Thomas Meyer <thomas@...3r.de>

Applied to linux-pm/pm-fixes, will push to Linus shortly.

Thanks,
Rafael


> ---
> 
> diff -u -p a/drivers/base/power/opp.c b/drivers/base/power/opp.c
> --- a/drivers/base/power/opp.c 2011-11-07 19:37:43.009876832 +0100
> +++ b/drivers/base/power/opp.c 2011-11-08 09:55:51.808539048 +0100
> @@ -669,7 +669,7 @@ struct srcu_notifier_head *opp_get_notif
>  	struct device_opp *dev_opp = find_device_opp(dev);
>  
>  	if (IS_ERR(dev_opp))
> -		return ERR_PTR(PTR_ERR(dev_opp)); /* matching type */
> +		return ERR_CAST(dev_opp); /* matching type */
>  
>  	return &dev_opp->head;
>  }
> 
> 
> 
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ