1
0
Fork 0

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>
hifive-unleashed-5.1
Kay Sievers 2009-10-28 19:51:37 +01:00 committed by Greg Kroah-Hartman
parent 015bf43b07
commit ad72956df2
1 changed files with 2 additions and 0 deletions

View File

@ -986,6 +986,8 @@ done:
AttrsError:
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: