Skip to contentSkip to conversation

+ lib-digsigc-use-err_cast-inlined-function-instead-of-err_ptrptr_err.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Oct 8, 2013 Library code

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + lib-digsigc-use-err_cast-inlined-function-instead-of-err_ptrptr_err.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Mon, 07 Oct 2013 18:11:06 -0700

The patch titled
Subject: lib/digsig.c: use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
has been added to the -mm tree. Its filename is
lib-digsigc-use-err_cast-inlined-function-instead-of-err_ptrptr_err.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/lib-digsigc-use-err_cast-inlined-function-instead-of-err_ptrptr_err.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/lib-digsigc-use-err_cast-inlined-function-instead-of-err_ptrptr_err.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Duan Jiong <[email protected]>
Subject: lib/digsig.c: use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))

---

 lib/digsig.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/digsig.c renamed from lib/digsig.c~lib-digsigc-use-err_cast-inlined-function-instead-of-err_ptrptr_err +1 -1
diff -puN lib/digsig.c~lib-digsigc-use-err_cast-inlined-function-instead-of-err_ptrptr_err lib/digsig.c
@@ -209,7 +209,7 @@ int digsig_verify(struct key *keyring, c
 		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 {

_

Patches currently in -mm which might be from [email protected] are

lib-digsigc-use-err_cast-inlined-function-instead-of-err_ptrptr_err.patch linux-next.patch