ext4 crypto: clean up error handling in ext4_fname_setup_filename
authorTheodore Ts'o <tytso@mit.edu>
Sun, 31 May 2015 17:35:22 +0000 (13:35 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 31 May 2015 17:35:22 +0000 (13:35 -0400)
commit82d0d3e7e69ab509b5c91b61f12bd3593a7c6dcb
tree3fc181cfc0c02ca2a1236ebefeb8fe6733ade2cb
parentd87f6d78e996bbba27b649c0e0eed7a37d6b73ba
ext4 crypto: clean up error handling in ext4_fname_setup_filename

Fix a potential memory leak where fname->crypto_buf.name wouldn't get
freed in some error paths, and also make the error handling easier to
understand/audit.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/crypto_fname.c