staging: unisys: visorbus: add error handling to handle_command
authorDavid Kershner <david.kershner@unisys.com>
Tue, 28 Mar 2017 13:34:19 +0000 (09:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Mar 2017 07:17:02 +0000 (09:17 +0200)
commit25a5128e8c58f5f52b2c8995ed77fbda191995fd
treeb3c72e6fae016b35edf3ea068752da19eae71f53
parent114d5dcf20ca3da17b46a9fda4c82cc3738834ed
staging: unisys: visorbus: add error handling to handle_command

Add error handling to the function handle_command.

Since handle_command now returns errors, we need to process them correctly
in process_controlvm_event.

Note: It is invalid to have a controlvm test message in the event queue, so
return -EINVAL if one is discovered.

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>
drivers/staging/unisys/visorbus/visorchipset.c