Commit 3350ff01 authored by Milan Broz's avatar Milan Broz

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

parent 7b422549
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment