tangled
alpha
login
or
join now
tjh.dev
/
kernel
Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1
fork
atom
overview
issues
pulls
pipelines
Pull bugfix into test branch
Len Brown
19 years ago
3be11c8f
706b75dd
+9
-8
4 changed files
expand all
collapse all
unified
split
drivers
acpi
Kconfig
osl.c
pci_root.c
processor_core.c
+1
-1
drivers/acpi/Kconfig
···
11
11
bool "ACPI Support"
12
12
depends on IA64 || X86
13
13
depends on PCI
14
14
-
select PM
14
14
+
depends on PM
15
15
default y
16
16
---help---
17
17
Advanced Configuration and Power Interface (ACPI) support for
+1
-1
drivers/acpi/osl.c
···
1032
1032
acpi_os_create_cache(char *name, u16 size, u16 depth, acpi_cache_t ** cache)
1033
1033
{
1034
1034
*cache = kmem_cache_create(name, size, 0, 0, NULL, NULL);
1035
1035
-
if (cache == NULL)
1035
1035
+
if (*cache == NULL)
1036
1036
return AE_ERROR;
1037
1037
else
1038
1038
return AE_OK;
+5
-4
drivers/acpi/pci_root.c
···
98
98
99
99
struct acpi_pci_driver **pptr = &sub_driver;
100
100
while (*pptr) {
101
101
-
if (*pptr != driver)
102
102
-
continue;
103
103
-
*pptr = (*pptr)->next;
104
104
-
break;
101
101
+
if (*pptr == driver)
102
102
+
break;
103
103
+
pptr = &(*pptr)->next;
105
104
}
105
105
+
BUG_ON(!*pptr);
106
106
+
*pptr = (*pptr)->next;
106
107
107
108
if (!driver->remove)
108
109
return;
+2
-2
drivers/acpi/processor_core.c
···
901
901
902
902
acpi_processor_dir = proc_mkdir(ACPI_PROCESSOR_CLASS, acpi_root_dir);
903
903
if (!acpi_processor_dir)
904
904
-
return 0;
904
904
+
return -ENOMEM;
905
905
acpi_processor_dir->owner = THIS_MODULE;
906
906
907
907
result = acpi_bus_register_driver(&acpi_processor_driver);
908
908
if (result < 0) {
909
909
remove_proc_entry(ACPI_PROCESSOR_CLASS, acpi_root_dir);
910
910
-
return 0;
910
910
+
return result;
911
911
}
912
912
913
913
acpi_processor_install_hotplug_notify();