Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 114d5dcf authored by David Kershner's avatar David Kershner Committed by Greg Kroah-Hartman
Browse files

staging: unisys: visorbus: parahotplug_process_message add error handling



Add error handling to the parahotplug_process_message function so that it
returns the proper error.

Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Reviewed-by: default avatarReviewed-by: Tim Sell <timothy.sell@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f6260f2e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1211,7 +1211,7 @@ parahotplug_request_kickoff(struct parahotplug_request *req)
 *                                 off a udev script
 * @inmsg: the message indicating whether to enable or disable
 */
static void
static int
parahotplug_process_message(struct controlvm_message *inmsg)
{
	struct parahotplug_request *req;
@@ -1219,7 +1219,7 @@ parahotplug_process_message(struct controlvm_message *inmsg)
	req = parahotplug_request_create(inmsg);

	if (!req)
		return;
		return -ENOMEM;

	if (inmsg->cmd.device_change_state.state.active) {
		/*
@@ -1252,6 +1252,7 @@ parahotplug_process_message(struct controlvm_message *inmsg)

		parahotplug_request_kickoff(req);
	}
	return 0;
}

/*