mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-06 14:39:12 +08:00
Revert "driver core: add error handling for devtmpfs_create_node()"
This reverts commit 31b4b6730f as it is
reported to cause boot regressions.
Link: https://lore.kernel.org/r/Y+rSXg14z1Myd8Px@dev-arch.thelio-3990X
Reported-by: Nathan Chancellor <nathan@kernel.org>
Cc: Longlong Xia <xialonglong1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -3602,9 +3602,7 @@ int device_add(struct device *dev)
|
||||
if (error)
|
||||
goto SysEntryError;
|
||||
|
||||
error = devtmpfs_create_node(dev);
|
||||
if (error)
|
||||
goto DevtmpfsError;
|
||||
devtmpfs_create_node(dev);
|
||||
}
|
||||
|
||||
/* Notify clients of device addition. This call must come
|
||||
@@ -3660,8 +3658,6 @@ int device_add(struct device *dev)
|
||||
done:
|
||||
put_device(dev);
|
||||
return error;
|
||||
DevtmpfsError:
|
||||
device_remove_sys_dev_entry(dev);
|
||||
SysEntryError:
|
||||
if (MAJOR(dev->devt))
|
||||
device_remove_file(dev, &dev_attr_dev);
|
||||
|
||||
Reference in New Issue
Block a user