Do not allocate big context on stack for cryptsetup-reencrypt.

This commit is contained in:
Milan Broz
2014-08-10 16:09:01 +02:00
parent 7b42254975
commit 3350ff017f

View File

@@ -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;