net/mlx5: Don't use already freed action pointer
[linux-2.6-block.git] / lib / test_kasan_module.c
index 7ebf433edef3bb3a93cf6087af578a5182ff7294..b112cbc835e902357707c906f5095835d7ca6066 100644 (file)
@@ -35,6 +35,8 @@ static noinline void __init copy_user_test(void)
                return;
        }
 
+       OPTIMIZER_HIDE_VAR(size);
+
        pr_info("out-of-bounds in copy_from_user()\n");
        unused = copy_from_user(kmem, usermem, size + 1);