Commit 2d26aeb7 authored by David Kershner's avatar David Kershner Committed by Greg Kroah-Hartman

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: default avatarDavid Kershner <david.kershner@unisys.com>
Reported-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 79c3f971
...@@ -548,19 +548,17 @@ chipset_init(struct controlvm_message *inmsg) ...@@ -548,19 +548,17 @@ chipset_init(struct controlvm_message *inmsg)
return res; return res;
} }
static void static int
controlvm_respond(struct controlvm_message_header *msg_hdr, int response) controlvm_respond(struct controlvm_message_header *msg_hdr, int response)
{ {
struct controlvm_message outmsg; struct controlvm_message outmsg;
controlvm_init_response(&outmsg, msg_hdr, response); controlvm_init_response(&outmsg, msg_hdr, response);
if (outmsg.hdr.flags.test_message == 1) if (outmsg.hdr.flags.test_message == 1)
return; return -EINVAL;
if (visorchannel_signalinsert(controlvm_channel, return visorchannel_signalinsert(controlvm_channel,
CONTROLVM_QUEUE_REQUEST, &outmsg)) { CONTROLVM_QUEUE_REQUEST, &outmsg);
return;
}
} }
static void controlvm_respond_physdev_changestate( static void controlvm_respond_physdev_changestate(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment