summaryrefslogtreecommitdiff
path: root/cpusched.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpusched.c')
0 files changed, 0 insertions, 0 deletions
e8410f04c67703e7c816b'>diff)
dm crypt: fix free of bad values after tfm allocation failure
If crypt_alloc_tfms() had to allocate multiple tfms and it failed before the last allocation, then it would call crypt_free_tfms() and could free pointers from uninitialized memory -- due to the crypt_free_tfms() check for non-zero cc->tfms[i]. Fix by allocating zeroed memory. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Cc: stable@vger.kernel.org
Diffstat