Package: lime-forensics-dkms
Version: 1.9.1-7
Severity: important
Tags: patch

Hi,

I'm attaching a small patch that makes the module build on arm*, failure
can be seen in the autopkgtests:
https://ci.debian.net/packages/l/lime-forensics/

The virt_addr_valid macro has architecture specific implementations and
takes takes a pointer argument. It internally casts the argument to
integer where needed, but on arm* there is also usage of the original
argument which gets passed to a function taking a void* argument.


Andreas
Author: Andreas Beckmann <a...@debian.org>
Description: the virt_addr_valid macro wants a void* argument

--- a/src/hash.c
+++ b/src/hash.c
@@ -98,7 +98,7 @@ int ldigest_update(void *v, size_t is) {
     int ret;
     struct scatterlist sg;
 
-    if (likely(virt_addr_valid((unsigned long) v))) {
+    if (likely(virt_addr_valid(v))) {
         sg_init_one(&sg, (u8 *) v, is);
     } else {
         int nbytes = is;

Reply via email to