udf: fix potential refcnt problem of nls module
authorChengguang Xu <cgxu519@icloud.com>
Sun, 25 Feb 2018 13:25:07 +0000 (21:25 +0800)
committerJan Kara <jack@suse.cz>
Fri, 2 Mar 2018 13:23:12 +0000 (14:23 +0100)
commit785dffe1daf95c176504dea3069c9df11af7ff15
treec2fcc45cbd2e09ee2c1e0a2adc83fc9d205f31fa
parentd09099051057bbae5e1a887167ad6189ac8bfca4
udf: fix potential refcnt problem of nls module

When specifiying iocharset multiple times in a mount or once/multiple in
a remount, current option parsing may cause inaccurate refcount of nls
module.  Also, in the failure cleanup of option parsing, the condition
of calling unload_nls is not sufficient.

Signed-off-by: Chengguang Xu <cgxu519@icloud.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c