PM: Improve error code of pm_notifier_call_chain()
[pandora-kernel.git] / drivers / char / apm-emulation.c
index 548708c..a7346ab 100644 (file)
@@ -606,7 +606,7 @@ static int apm_suspend_notifier(struct notifier_block *nb,
                        return NOTIFY_OK;
 
                /* interrupted by signal */
-               return NOTIFY_BAD;
+               return notifier_from_errno(err);
 
        case PM_POST_SUSPEND:
                /*