diff options
author | David Kershner | 2016-11-21 18:15:46 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-11-23 10:01:57 +0100 |
commit | 2d26aeb77357678e38c931c760d57bda084112ea (patch) | |
tree | f36afd7dc63527593d1816a12179f882b8b0893f /drivers/staging/unisys/visorbus/visorchipset.c | |
parent | staging: unisys: visorbus: chipset_init add error handling (diff) | |
download | kernel-qcow2-linux-2d26aeb77357678e38c931c760d57bda084112ea.tar.gz kernel-qcow2-linux-2d26aeb77357678e38c931c760d57bda084112ea.tar.xz kernel-qcow2-linux-2d26aeb77357678e38c931c760d57bda084112ea.zip |
staging: unisys: visorbus: controlvm_respond add error handling
The function visorchanel_signalinsert now returns an error, propagate
the error up the stack to be handled.
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.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c index 331f6b1929b8..0c454f66beed 100644 --- a/drivers/staging/unisys/visorbus/visorchipset.c +++ b/drivers/staging/unisys/visorbus/visorchipset.c @@ -548,19 +548,17 @@ out_respond: return res; } -static void +static int controlvm_respond(struct controlvm_message_header *msg_hdr, int response) { struct controlvm_message outmsg; controlvm_init_response(&outmsg, msg_hdr, response); if (outmsg.hdr.flags.test_message == 1) - return; + return -EINVAL; - if (visorchannel_signalinsert(controlvm_channel, - CONTROLVM_QUEUE_REQUEST, &outmsg)) { - return; - } + return visorchannel_signalinsert(controlvm_channel, + CONTROLVM_QUEUE_REQUEST, &outmsg); } static void controlvm_respond_physdev_changestate( |