]> git.baikalelectronics.ru Git - kernel.git/commit
udf: Use separate buffer for copying split names
authorJan Kara <jack@suse.cz>
Tue, 26 Jan 2016 20:07:30 +0000 (21:07 +0100)
committerJan Kara <jack@suse.cz>
Tue, 9 Feb 2016 12:05:23 +0000 (13:05 +0100)
commitf707c2721a7e5a07badb0f3b04d512c4042793a0
treeff4eb1b93ce96a2b30956ee7b8c1b9569c3879c5
parent2647c4765f5741f7aec6a559a3e07029441ef36a
udf: Use separate buffer for copying split names

Code in udf_find_entry() and udf_readdir() used the same buffer for
storing filename that was split among blocks and for the resulting
filename in utf8. This worked because udf_get_filename() first
internally copied the name into a different buffer and only then
performed a conversion into the destination buffer. However we want to
get rid of intermediate buffers so use separate buffer for converted
name and name split between blocks so that we don't have the same source
and destination buffer when converting split names.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/dir.c
fs/udf/namei.c