Skip to content

Commit 0968cf5

Browse files
Jeff GarzikLinus Torvalds
authored andcommitted
[PATCH] firmware/dcdbas: fix bug in error cleanup
The error path path mistakenly called sysfs_create_group() rather than sysfs_remove_group(). They take the same arguments, so it's easy to cut-n-paste such a bug. Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 15e541f commit 0968cf5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/firmware/dcdbas.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ static int __devinit dcdbas_probe(struct platform_device *dev)
559559
while (--i >= 0)
560560
sysfs_remove_bin_file(&dev->dev.kobj,
561561
dcdbas_bin_attrs[i]);
562-
sysfs_create_group(&dev->dev.kobj, &dcdbas_attr_group);
562+
sysfs_remove_group(&dev->dev.kobj, &dcdbas_attr_group);
563563
return error;
564564
}
565565
}

0 commit comments

Comments
 (0)