diff options
author | Erwan Velu <erwan.velu@free.fr> | 2009-04-27 16:50:59 +0200 |
---|---|---|
committer | Erwan Velu <erwan.velu@free.fr> | 2009-04-27 16:50:59 +0200 |
commit | 2bc1f8f6971f8cd6e3b6b4a4ad1168d10b839cab (patch) | |
tree | 6cecf86397db88e4d2f83102cd62bbfad143f65d /com32/hdt/hdt-menu-pci.c | |
parent | db265a9a03849966ec9183f675d539fc3b0d6ecd (diff) | |
download | syslinux-2bc1f8f6971f8cd6e3b6b4a4ad1168d10b839cab.tar.gz |
hdt: fix wrong kernel module display in menu mode
Impact: prevent wrong module display for some pci devices
The buffer wasn't clean and could contain some previous kernel modules.
This bug leads to display too many kernel modules for a single pci device
Diffstat (limited to 'com32/hdt/hdt-menu-pci.c')
-rw-r--r-- | com32/hdt/hdt-menu-pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/com32/hdt/hdt-menu-pci.c b/com32/hdt/hdt-menu-pci.c index 74c07107..451aaaeb 100644 --- a/com32/hdt/hdt-menu-pci.c +++ b/com32/hdt/hdt-menu-pci.c @@ -94,6 +94,8 @@ static void compute_pci_device(struct s_my_menu *menu, add_item(buffer,statbuffer,OPT_INACTIVE,NULL,0); menu->items_count++; + memset(kernel_modules,0,sizeof(kernel_modules)); + if (pci_device->dev_info->linux_kernel_module_count > 1) { for (int i = 0; i < pci_device->dev_info->linux_kernel_module_count; i++) { |