aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorEric Biggers <[email protected]>2016-08-30 16:51:44 +0000
committerMike Snitzer <[email protected]>2016-08-30 23:45:19 +0000
commit5d0be84ec0cacfc7a6d6ea548afdd07d481324cd (patch)
tree584bc09b15f3303a1d542392f911db6e3690cb7b /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentdm crypt: fix error with too large bios (diff)
downloadkernel-5d0be84ec0cacfc7a6d6ea548afdd07d481324cd.tar.gz
kernel-5d0be84ec0cacfc7a6d6ea548afdd07d481324cd.zip
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 <[email protected]> Signed-off-by: Mike Snitzer <[email protected]> Cc: [email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions