mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
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>
This commit is contained in:
parent
015bf43b07
commit
ad72956df2
|
|
@ -986,6 +986,8 @@ int device_add(struct device *dev)
|
|||
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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user