summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-10-28 19:51:37 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2009-12-11 11:24:52 -0800
commitad72956df2ce83f58be1dc4e503c78c28e414c2c (patch)
tree78c250e4e578251a6e09ec24b24c14c9aede6fd8 /drivers
parent015bf43b07158668c2f38af463939afcc6d19403 (diff)
downloadlinux-3.10-ad72956df2ce83f58be1dc4e503c78c28e414c2c.tar.gz
linux-3.10-ad72956df2ce83f58be1dc4e503c78c28e414c2c.tar.bz2
linux-3.10-ad72956df2ce83f58be1dc4e503c78c28e414c2c.zip
Driver Core: devtmpfs: cleanup node on device creation error
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/base/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 6bee6af8d8e..0d3c29d7221 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -987,6 +987,8 @@ done:
device_remove_class_symlinks(dev);
SymlinkError:
if (MAJOR(dev->devt))
+ devtmpfs_delete_node(dev);
+ if (MAJOR(dev->devt))
device_remove_sys_dev_entry(dev);
devtattrError:
if (MAJOR(dev->devt))