summaryrefslogtreecommitdiffstats
path: root/drivers/staging/unisys/visorbus/visorchipset.c
diff options
context:
space:
mode:
authorDavid Kershner2016-11-21 18:15:49 +0100
committerGreg Kroah-Hartman2016-11-23 10:01:57 +0100
commit734ad93a23a8017e9256f717530e2e4f9c654ce2 (patch)
tree6d5b8d1cfc73e6eba703a142540233ffe1dace34 /drivers/staging/unisys/visorbus/visorchipset.c
parentstaging: unisys: visorbus: save_crash_message add error handling (diff)
downloadkernel-qcow2-linux-734ad93a23a8017e9256f717530e2e4f9c654ce2.tar.gz
kernel-qcow2-linux-734ad93a23a8017e9256f717530e2e4f9c654ce2.tar.xz
kernel-qcow2-linux-734ad93a23a8017e9256f717530e2e4f9c654ce2.zip
staging: unisys: visorbus: bus_responder add error handling
Controlvm_respond now returns an error. Add error handling to the bus_responder function. Signed-off-by: David Kershner <david.kershner@unisys.com> Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys/visorbus/visorchipset.c')
-rw-r--r--drivers/staging/unisys/visorbus/visorchipset.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c
index 034ff91ead5d..a10e41aa5d62 100644
--- a/drivers/staging/unisys/visorbus/visorchipset.c
+++ b/drivers/staging/unisys/visorbus/visorchipset.c
@@ -638,18 +638,18 @@ save_crash_message(struct controlvm_message *msg, enum crash_obj_type typ)
return 0;
}
-static void
+static int
bus_responder(enum controlvm_id cmd_id,
struct controlvm_message_header *pending_msg_hdr,
int response)
{
if (!pending_msg_hdr)
- return; /* no controlvm response needed */
+ return -EIO;
if (pending_msg_hdr->id != (u32)cmd_id)
- return;
+ return -EINVAL;
- controlvm_respond(pending_msg_hdr, response);
+ return controlvm_respond(pending_msg_hdr, response);
}
static void