]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
vchiq_arm: Service callbacks must not fail
authorPhil Elwell <phil@raspberrypi.org>
Wed, 23 Mar 2016 20:53:47 +0000 (20:53 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 11 Aug 2017 10:57:52 +0000 (12:57 +0200)
Service callbacks are not allowed to return an error. The internal callback
that delivers events and messages to user tasks does not enqueue them if
the service is closing, but this is not an error and should not be
reported as such.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c

index c5ce19c965e0475e6a44f708cd9a8f61ceeac500..4a218026cddb253c54d06c2fd9d9b034ac2dddc4 100644 (file)
@@ -224,7 +224,7 @@ add_completion(VCHIQ_INSTANCE_T instance, VCHIQ_REASON_T reason,
                } else if (instance->closing) {
                        vchiq_log_info(vchiq_arm_log_level,
                                "service_callback closing");
-                       return VCHIQ_ERROR;
+                       return VCHIQ_SUCCESS;
                }
                DEBUG_TRACE(SERVICE_CALLBACK_LINE);
        }