Re: [next] kasan: shadow.c:528:33: error: 'VM_DELAY_KMEMLEAK' undeclared
From: Stephen Rothwell
Date: Fri Nov 26 2021 - 00:09:08 EST
Hi all,
On Thu, 25 Nov 2021 15:34:06 +0800 Kefeng Wang <wangkefeng.wang@xxxxxxxxxx> wrote:
>
> Sorry for the missing change of VM_DEFER_KMEMLEAK.
>
> I will add Fixes tag and resend v4.
I have applied the following patch to linux-next today:
From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
Date: Fri, 26 Nov 2021 15:34:11 +1100
Subject: [PATCH] mm: kasan: fix VM_DELAY_KMEMLEAK typo
Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
---
mm/kasan/shadow.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/kasan/shadow.c b/mm/kasan/shadow.c
index 2ade2f484562..94136f84b449 100644
--- a/mm/kasan/shadow.c
+++ b/mm/kasan/shadow.c
@@ -525,7 +525,7 @@ int kasan_module_alloc(void *addr, size_t size, gfp_t gfp_mask)
vm->flags |= VM_KASAN;
kmemleak_ignore(ret);
- if (vm->flags & VM_DELAY_KMEMLEAK)
+ if (vm->flags & VM_DEFER_KMEMLEAK)
kmemleak_vmalloc(vm, size, gfp_mask);
return 0;
--
2.33.0
--
Cheers,
Stephen Rothwell
Attachment:
pgpM0eQt_rkpC.pgp
Description: OpenPGP digital signature