diff options
author | David Kershner <david.kershner@unisys.com> | 2017-03-28 16:34:18 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-29 10:17:02 +0300 |
commit | 114d5dcf20ca3da17b46a9fda4c82cc3738834ed (patch) | |
tree | 8e9242f5b5e8db80b4600d020c19da8913e02e5b | |
parent | f6260f2e4951eb8633d8c3c7857ceb62241d4c3b (diff) | |
download | linux-114d5dcf20ca3da17b46a9fda4c82cc3738834ed.tar.xz |
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: David Kershner <david.kershner@unisys.com>
Reviewed-by: Reviewed-by: Tim Sell <timothy.sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/unisys/visorbus/visorchipset.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c index 46c5a93aa8a0..9c0a07f403b0 100644 --- a/drivers/staging/unisys/visorbus/visorchipset.c +++ b/drivers/staging/unisys/visorbus/visorchipset.c @@ -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; } /* |