mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 10:59:18 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
79c3f971d9
commit
2d26aeb773
@@ -548,19 +548,17 @@ chipset_init(struct controlvm_message *inmsg)
|
||||
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(
|
||||
|
||||
Reference in New Issue
Block a user