]> Zhao Yanbai Git Server - minix.git/commitdiff
pm: ignore notify() from unknown sender
authorBen Gras <ben@minix3.org>
Thu, 14 Jun 2012 13:36:38 +0000 (15:36 +0200)
committerBen Gras <ben@minix3.org>
Thu, 14 Jun 2012 13:36:38 +0000 (15:36 +0200)
. avoids annoying error message if e.g. buggy drivers
  send pm notify()s that pm tries to reply() ENOSYS to

servers/pm/main.c

index 45796594ca440e7b5c78bcd8c8b2e189a4ae75dd..ac140b92afe3cdf31ec390e69c862e103497cd9e 100644 (file)
@@ -96,7 +96,8 @@ int main()
                                result = SUSPEND;       /* don't reply */
                                break;
                        default :
-                               result = ENOSYS;
+                               /* ignore notify() from unknown sender */
+                               result = SUSPEND;
                }
 
                /* done, send reply and continue */