From 3350ff017f6fc3158f316685366b873b72ebcea0 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Sun, 10 Aug 2014 16:09:01 +0200 Subject: [PATCH] Do not allocate big context on stack for cryptsetup-reencrypt. --- src/cryptsetup_reencrypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptsetup_reencrypt.c b/src/cryptsetup_reencrypt.c index 65d4685c..997c3887 100644 --- a/src/cryptsetup_reencrypt.c +++ b/src/cryptsetup_reencrypt.c @@ -1086,7 +1086,7 @@ static void destroy_context(struct reenc_ctx *rc) static int run_reencrypt(const char *device) { int r = -EINVAL; - struct reenc_ctx rc = {}; + static struct reenc_ctx rc = {}; if (initialize_context(&rc, device)) goto out;