]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - lib/digsig.c
nouveau: don't call pci_dma_supported
[karo-tx-linux.git] / lib / digsig.c
index ae05ea393fc8c10f5cd25f88a9c39e3d3f866680..07be6c1ef4e2564c321b7bda1669fc1e9d84f8cf 100644 (file)
@@ -79,12 +79,13 @@ static int digsig_verify_rsa(struct key *key,
        unsigned char *out1 = NULL;
        const char *m;
        MPI in = NULL, res = NULL, pkey[2];
-       uint8_t *p, *datap, *endp;
-       struct user_key_payload *ukp;
+       uint8_t *p, *datap;
+       const uint8_t *endp;
+       const struct user_key_payload *ukp;
        struct pubkey_hdr *pkh;
 
        down_read(&key->sem);
-       ukp = key->payload.data;
+       ukp = user_key_payload(key);
 
        if (ukp->datalen < sizeof(*pkh))
                goto err1;