public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] digsig: use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
@ 2013-09-27  3:30 Duan Jiong
  0 siblings, 0 replies; only message in thread
From: Duan Jiong @ 2013-09-27  3:30 UTC (permalink / raw)
  To: Dmitry Kasatkin, James Morris; +Cc: linux-kernel



Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
---
 lib/digsig.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/digsig.c b/lib/digsig.c
index 2f31e6a..8793aed 100644
--- a/lib/digsig.c
+++ b/lib/digsig.c
@@ -209,7 +209,7 @@ int digsig_verify(struct key *keyring, const char *sig, int siglen,
 		kref = keyring_search(make_key_ref(keyring, 1UL),
 						&key_type_user, name);
 		if (IS_ERR(kref))
-			key = ERR_PTR(PTR_ERR(kref));
+			key = ERR_CAST(kref);
 		else
 			key = key_ref_to_ptr(kref);
 	} else {
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-27  3:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-27  3:30 [PATCH] digsig: use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)) Duan Jiong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox