]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit16c505d0742ceae0488d7c086e8e1351b75dbd3b
treeb3c72e6fae016b35edf3ea068752da19eae71f53
parent7151949125b8e94bc39f71a22d02555e7985a7cb
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