firmware/br-ext-chip-allwinner/board/v83x/kernel/patches/00000-lib_digsig.c.patch

13 lines
405 B
Diff

diff -drupN a/lib/digsig.c b/lib/digsig.c
--- a/lib/digsig.c 2018-08-06 17:23:04.000000000 +0300
+++ b/lib/digsig.c 2022-06-12 05:28:14.000000000 +0300
@@ -85,7 +85,7 @@ static int digsig_verify_rsa(struct key
struct pubkey_hdr *pkh;
down_read(&key->sem);
- ukp = user_key_payload(key);
+ ukp = user_key_payload_locked(key);
if (!ukp) {
/* key was revoked before we acquired its semaphore */