]> 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)
commit04b1892c6a7bc98ab0d16ebaef4e47067af20895
treeb3c72e6fae016b35edf3ea068752da19eae71f53
parent37437fdf6c51e7678f1fcd50fc5382f139ba0a78
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