Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 70988
b: refs/heads/master
c: cddf7ff
h: refs/heads/master
v: v3
  • Loading branch information
Mariusz Kozlowski authored and Thomas Gleixner committed Oct 17, 2007
1 parent 9562b88 commit 478a17c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a850cef77f148c2e305022a1ed86ca6cff5ee300
refs/heads/master: cddf7ff766ee53e24ff37f55a897efc90cb3526e
5 changes: 2 additions & 3 deletions trunk/arch/x86/kernel/io_apic_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -1845,7 +1845,7 @@ static struct sysdev_class ioapic_sysdev_class = {
static int __init ioapic_init_sysfs(void)
{
struct sys_device * dev;
int i, size, error = 0;
int i, size, error;

error = sysdev_class_register(&ioapic_sysdev_class);
if (error)
Expand All @@ -1854,12 +1854,11 @@ static int __init ioapic_init_sysfs(void)
for (i = 0; i < nr_ioapics; i++ ) {
size = sizeof(struct sys_device) + nr_ioapic_registers[i]
* sizeof(struct IO_APIC_route_entry);
mp_ioapic_data[i] = kmalloc(size, GFP_KERNEL);
mp_ioapic_data[i] = kzalloc(size, GFP_KERNEL);
if (!mp_ioapic_data[i]) {
printk(KERN_ERR "Can't suspend/resume IOAPIC %d\n", i);
continue;
}
memset(mp_ioapic_data[i], 0, size);
dev = &mp_ioapic_data[i]->dev;
dev->id = i;
dev->cls = &ioapic_sysdev_class;
Expand Down

0 comments on commit 478a17c

Please sign in to comment.