kasan: free allocated shadow memory on MEM_CANCEL_ONLINE
Subsystems (3)
[email protected]
maintainerPATCH 15/16 kasan: free allocated shadow memory on MEM_CANCEL_ONLINE
From: David Hildenbrand <[email protected]>
Subject: kasan: free allocated shadow memory on MEM_CANCEL_ONLINE
We have to free memory again when we cancel onlining, otherwise a later onlining attempt will fail.
Fixes fa69b5989bb0 ("mm/kasan: add support for memory hotplug")
Signed-off-by David Hildenbrand <[email protected]>
Acked-by Andrey Ryabinin <[email protected]>
Cc Alexander Potapenko <[email protected]>
Cc Dmitry Vyukov <[email protected]>
Cc <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/kasan/kasan.c | 1 + 1 file changed, 1 insertion(+)
mm/kasan/kasan.c renamed from mm/kasan/kasan.c~kasan-free-allocated-shadow-memory-on-mem_cancel_online +1 -0
@@ -866,6 +866,7 @@ static int __meminit kasan_mem_notifier(kmemleak_ignore (ret);return NOTIFY_OK ; } +case MEM_CANCEL_ONLINE :case MEM_OFFLINE : {struct vm_struct *vm;
_