Log in UnloadModuleOrDriver() in a signal safe manner
The function may be called from a fatal signal handler. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
89e3ac07ac
commit
c3e1168778
|
@ -1093,9 +1093,10 @@ UnloadModuleOrDriver(ModuleDescPtr mod)
|
|||
return;
|
||||
|
||||
if (mod->parent)
|
||||
xf86MsgVerb(X_INFO, 3, "UnloadSubModule: \"%s\"\n", mod->name);
|
||||
LogMessageVerbSigSafe(X_INFO, 3, "UnloadSubModule: \"%s\"\n",
|
||||
mod->name);
|
||||
else
|
||||
xf86MsgVerb(X_INFO, 3, "UnloadModule: \"%s\"\n", mod->name);
|
||||
LogMessageVerbSigSafe(X_INFO, 3, "UnloadModule: \"%s\"\n", mod->name);
|
||||
|
||||
if (mod->TearDownData != ModuleDuplicated) {
|
||||
if ((mod->TearDownProc) && (mod->TearDownData))
|
||||
|
|
Loading…
Reference in New Issue
Block a user