diff options
author | Eric Biggers <ebiggers@google.com> | 2016-08-30 19:51:44 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2016-08-31 02:45:19 +0300 |
commit | 5d0be84ec0cacfc7a6d6ea548afdd07d481324cd (patch) | |
tree | 584bc09b15f3303a1d542392f911db6e3690cb7b /drivers/md/raid5-cache.c | |
parent | 4e870e948fbabf62b78e8410f04c67703e7c816b (diff) | |
download | linux-5d0be84ec0cacfc7a6d6ea548afdd07d481324cd.tar.xz |
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 (limited to 'drivers/md/raid5-cache.c')
0 files changed, 0 insertions, 0 deletions