staging: unisys: visorbus: fix error handling in create_bus_instance
authorDavid Kershner <david.kershner@unisys.com>
Tue, 28 Mar 2017 13:34:45 +0000 (09:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Mar 2017 07:17:03 +0000 (09:17 +0200)
commit362f87f3122d1f744bb09caa40e86fae5d9f4c60
tree34a73ab3c523dac7218528f57787531ac1ca281e
parent5dca9b294436eb381b825f60751723e80173cb4b
staging: unisys: visorbus: fix error handling in create_bus_instance

The function get_vbus_header_info returns errors that were being handled
incorrectly. Fix the error handling in create_bus_instance.

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/visorbus_main.c