Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb13ac57 authored by Jan Kara's avatar Jan Kara Committed by Greg Kroah-Hartman
Browse files

udf: Explain handling of load_nls() failure



[ Upstream commit a768a9abc625d554f7b6428517089c193fcb5962 ]

Add comment explaining that load_nls() failure gets handled back in
udf_fill_super() to avoid false impression that it is unhandled.

Signed-off-by: default avatarJan Kara <jack@suse.cz>
Stable-dep-of: fc8033a34a3c ("udf: Preserve link count of system files")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 6fc2e5b4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -572,6 +572,11 @@ static int udf_parse_options(char *options, struct udf_options *uopt,
			if (!remount) {
				if (uopt->nls_map)
					unload_nls(uopt->nls_map);
				/*
				 * load_nls() failure is handled later in
				 * udf_fill_super() after all options are
				 * parsed.
				 */
				uopt->nls_map = load_nls(args[0].from);
				uopt->flags |= (1 << UDF_FLAG_NLS_MAP);
			}