hal/hald/linux pci_bus_device.c,1.8,1.9
David Zeuthen
david at freedesktop.org
Thu Oct 14 12:21:43 PDT 2004
Update of /cvs/hal/hal/hald/linux
In directory gabe:/tmp/cvs-serv2678/hald/linux
Modified Files:
pci_bus_device.c
Log Message:
2004-10-14 David Zeuthen <davidz at redhat.com>
Patch from Martin Pitt <martin at piware.de>.
* hald/linux/pci_bus_device.c (pci_device_pre_process): Fixup crash
on intel pro 2200 wireless because of unchecked pointer. Reported by
Mitch <Mitch at 0Bits.COM>.
Index: pci_bus_device.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux/pci_bus_device.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- pci_bus_device.c 8 Oct 2004 18:49:30 -0000 1.8
+++ pci_bus_device.c 14 Oct 2004 19:21:41 -0000 1.9
@@ -410,6 +410,9 @@
dlist_for_each_data (sysfs_get_device_attributes (device), cur,
struct sysfs_attribute) {
+ if (cur == NULL || cur->path == NULL || cur->value == NULL)
+ continue;
+
if (sysfs_get_name_from_path (cur->path,
attr_name,
SYSFS_NAME_LEN) != 0)
More information about the hal-commit
mailing list