]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - lib/test_kasan.c
lib/genalloc.c: fix allocation of aligned buffer from non-aligned chunk
[mirror_ubuntu-bionic-kernel.git] / lib / test_kasan.c
index ef1a3ac1397e88e436f0fd282804988f3d9b77a1..ebd2cabcc483e0f54c4c041c76ff0063217e0a91 100644 (file)
@@ -388,7 +388,7 @@ static noinline void __init kasan_stack_oob(void)
 static noinline void __init ksize_unpoisons_memory(void)
 {
        char *ptr;
-       size_t size = 123, real_size = size;
+       size_t size = 123, real_size;
 
        pr_info("ksize() unpoisons the whole allocated chunk\n");
        ptr = kmalloc(size, GFP_KERNEL);