]> git.proxmox.com Git - mirror_ubuntu-artful-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>
Wed, 14 Jun 2017 09:11:35 +0000 (11:11 +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 74f1569097c7dd120cc68fb8d09d8c3d63d56977..3ba6485f0c7b32de9f2aa75164e8b1b901aa74ea 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);
        }