]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: ccree: NULLify backup_info when unused
authorGilad Ben-Yossef <gilad@benyossef.com>
Sun, 3 Dec 2017 13:58:19 +0000 (13:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Dec 2017 08:55:15 +0000 (09:55 +0100)
commit46df8824982e4fb0198776078d4a8c3e2d531464
treed1be28e3f3aadfb966002b047051d06b2fbfd93e
parent0d527ecc48d51e5f32e76a5655ac4e5d562c7923
staging: ccree: NULLify backup_info when unused

backup_info field is only allocated for decrypt code path.
The field was not nullified when not used causing a kfree
in an error handling path to attempt to free random
addresses as uncovered in stress testing.

Fixes: 737aed947f9b ("staging: ccree: save ciphertext for CTS IV")
Cc: stable@vger.kernel.org
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/ssi_cipher.c