summaryrefslogtreecommitdiffstats
path: root/drivers/staging/unisys/visorbus/visorchipset.c
diff options
context:
space:
mode:
authorDavid Kershner2016-12-22 17:09:05 +0100
committerGreg Kroah-Hartman2017-01-03 15:19:06 +0100
commit300ed61251db466121a500bc85c720b7d709e6f5 (patch)
treee35ee63a0d7a5efa578358e06d9888508195b501 /drivers/staging/unisys/visorbus/visorchipset.c
parentstaging: unisys: visorbus: my_device_create add error handling (diff)
downloadkernel-qcow2-linux-300ed61251db466121a500bc85c720b7d709e6f5.tar.gz
kernel-qcow2-linux-300ed61251db466121a500bc85c720b7d709e6f5.tar.xz
kernel-qcow2-linux-300ed61251db466121a500bc85c720b7d709e6f5.zip
staging: unisys: visorbus: Add err handling for function save_crash_message
The function save_crash_message returns an error, don't ignore it, respond appropriately and send it up. Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: David Kershner <david.kershner@unisys.com> Reviewed-by: David Binder <david.binder@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys/visorbus/visorchipset.c')
-rw-r--r--drivers/staging/unisys/visorbus/visorchipset.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c
index 27f52ca8e99f..6343cb029b6e 100644
--- a/drivers/staging/unisys/visorbus/visorchipset.c
+++ b/drivers/staging/unisys/visorbus/visorchipset.c
@@ -728,8 +728,11 @@ bus_create(struct controlvm_message *inmsg)
POSTCODE_LINUX(BUS_CREATE_ENTRY_PC, 0, bus_no, DIAG_SEVERITY_PRINT);
- if (uuid_le_cmp(cmd->create_bus.bus_inst_uuid, spar_siovm_uuid) == 0)
- save_crash_message(inmsg, CRASH_BUS);
+ if (uuid_le_cmp(cmd->create_bus.bus_inst_uuid, spar_siovm_uuid) == 0) {
+ err = save_crash_message(inmsg, CRASH_BUS);
+ if (err)
+ goto err_free_bus_info;
+ }
if (inmsg->hdr.flags.response_expected == 1) {
pmsg_hdr = kzalloc(sizeof(*pmsg_hdr),