projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'v3.10.108' into update
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
lib
/
digsig.c
diff --git
a/lib/digsig.c
b/lib/digsig.c
index 2f31e6a45f0af3f4e4bccd38aeb1d8324c72eeff..ae703dfc973155d928dcde49d1db0eaa8d664571 100644
(file)
--- a/
lib/digsig.c
+++ b/
lib/digsig.c
@@
-86,6
+86,12
@@
static int digsig_verify_rsa(struct key *key,
down_read(&key->sem);
ukp = key->payload.data;
+ if (!ukp) {
+ /* key was revoked before we acquired its semaphore */
+ err = -EKEYREVOKED;
+ goto err1;
+ }
+
if (ukp->datalen < sizeof(*pkh))
goto err1;