kasan: free allocated shadow memory on MEM_CANCEL_ONLINE
authorDavid Hildenbrand <[email protected]>
Fri, 25 May 2018 21:48:08 +0000 (14:48 -0700)
committerLinus Torvalds <[email protected]>
Sat, 26 May 2018 01:12:11 +0000 (18:12 -0700)
commited1596f9ab958dd156a66c9ff1029d3761c1786a
treecf2dcf5367482452af95df0c924d12583d61fb92
parentd41362ed12b6402f0bba044037653f916757c3b2
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.

Link: http://lkml.kernel.org/r/[email protected]
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]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/kasan/kasan.c