kcore: add _text to KCORE_TEXT
[safe/jmp/linux-2.6] / fs / nls / nls_base.c
index b25c218..44a88a9 100644 (file)
@@ -270,7 +270,8 @@ struct nls_table *load_nls(char *charset)
 
 void unload_nls(struct nls_table *nls)
 {
-       module_put(nls->owner);
+       if (nls)
+               module_put(nls->owner);
 }
 
 static const wchar_t charset2uni[256] = {