udf: Return -ENOMEM when allocation fails in udf_get_filename()
authorFabian Frederick <fabf@skynet.be>
Wed, 8 Apr 2015 19:23:51 +0000 (21:23 +0200)
committerJan Kara <jack@suse.cz>
Mon, 18 May 2015 09:23:03 +0000 (11:23 +0200)
commit5ceb8b554dcaaf6844415cd2616ce2e0132530fa
treec80877de890e6f3ab8d47aae705d39401031efb8
parentc0655fe9b0901a968800f56687be3c62b4cce5d2
udf: Return -ENOMEM when allocation fails in udf_get_filename()

Return -ENOMEM when allocation fails in udf_get_filename(). Update
udf_pc_to_char(), udf_readdir(), and udf_find_entry() to handle the
error appropriately. This allows us to pass appropriate error to
userspace instead of corrupting symlink contents by omitting some path
elements.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/dir.c
fs/udf/namei.c
fs/udf/symlink.c
fs/udf/unicode.c