]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdc9b5d06e3fc2917646a9a70156e8c6bb6680602
tree3fc181cfc0c02ca2a1236ebefeb8fe6733ade2cb
parent6f9c2dabe7ada91eae6bc85603412ee7f249276a
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