Re: [PATCH v3 2/5] fs: Check if utf8 encoding is loaded before calling utf8_unload()

2021-03-23 Thread Gabriel Krisman Bertazi
Shreeya Patel writes: > utf8_unload is being called if CONFIG_UNICODE is enabled. > The ifdef block doesn't check if utf8 encoding has been loaded > or not before calling the utf8_unload() function. > This is not the expected behavior since it would sometimes lead > to unloading utf8 even before

[PATCH v3 2/5] fs: Check if utf8 encoding is loaded before calling utf8_unload()

2021-03-23 Thread Shreeya Patel
utf8_unload is being called if CONFIG_UNICODE is enabled. The ifdef block doesn't check if utf8 encoding has been loaded or not before calling the utf8_unload() function. This is not the expected behavior since it would sometimes lead to unloading utf8 even before loading it. Hence, add a condition