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

The function chipset_bus_create should return an error. If an error
is returned, it is assumed the response has not been sent by bus_create.

Correctly handle when the error has been returned in visorchipset.

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