From 4abce83dca116e2d0b49e1601bff2983e6cf0491 Mon Sep 17 00:00:00 2001 From: David Kershner Date: Thu, 4 Jun 2015 09:22:49 -0400 Subject: staging: unisys: Add the bus device to the visor device list. When the bus device was created the list_all variables were not being initialized. When the CONTROLVM_BUS_CONFIGURE message was being sent, it was failing to find the bus and produced a panic. Initialize the bus_info->list_all variable by doing a INIT_LIST_HEAD. Signed-off-by: David Kershner Signed-off-by: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- drivers/staging/unisys/visorbus/visorchipset.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers') diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c index 99fa96e80e1e..cf35d9d3a9bc 100644 --- a/drivers/staging/unisys/visorbus/visorchipset.c +++ b/drivers/staging/unisys/visorbus/visorchipset.c @@ -1107,6 +1107,7 @@ bus_create(struct controlvm_message *inmsg) goto cleanup; } + INIT_LIST_HEAD(&bus_info->list_all); bus_info->chipset_bus_no = bus_no; bus_info->chipset_dev_no = BUS_ROOT_DEVICE; -- cgit v1.2.3