mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
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 <david.kershner@unisys.com> Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
04dacacc14
commit
4abce83dca
1 changed files with 1 additions and 0 deletions
|
@ -1107,6 +1107,7 @@ bus_create(struct controlvm_message *inmsg)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
INIT_LIST_HEAD(&bus_info->list_all);
|
||||||
bus_info->chipset_bus_no = bus_no;
|
bus_info->chipset_bus_no = bus_no;
|
||||||
bus_info->chipset_dev_no = BUS_ROOT_DEVICE;
|
bus_info->chipset_dev_no = BUS_ROOT_DEVICE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue