ecryptfs: use after free
authorDan Carpenter <error27@gmail.com>
Tue, 19 Jan 2010 09:34:32 +0000 (12:34 +0300)
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>
Wed, 20 Jan 2010 04:36:06 +0000 (22:36 -0600)
commitece550f51ba175c14ec3ec047815927d7386ea1f
tree759c930b24718b3feacf149a8e4759f7725ee8e5
parent4aa25bcb7dac2d583f1557e2be2d0b598581da54
ecryptfs: use after free

The "full_alg_name" variable is used on a couple error paths, so we
shouldn't free it until the end.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
fs/ecryptfs/crypto.c