提交 734ad93a 编写于 作者: D David Kershner 提交者: Greg Kroah-Hartman

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: NDavid Kershner <david.kershner@unisys.com>
Reported-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 8dff01f7
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册