Skip to content

Commit 17c4576

Browse files
committed
Revert "driver core: add error handling for devtmpfs_create_node()"
This reverts commit 31b4b67 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>
1 parent 48c9899 commit 17c4576

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

drivers/base/core.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3602,9 +3602,7 @@ int device_add(struct device *dev)
36023602
if (error)
36033603
goto SysEntryError;
36043604

3605-
error = devtmpfs_create_node(dev);
3606-
if (error)
3607-
goto DevtmpfsError;
3605+
devtmpfs_create_node(dev);
36083606
}
36093607

36103608
/* Notify clients of device addition. This call must come
@@ -3660,8 +3658,6 @@ int device_add(struct device *dev)
36603658
done:
36613659
put_device(dev);
36623660
return error;
3663-
DevtmpfsError:
3664-
device_remove_sys_dev_entry(dev);
36653661
SysEntryError:
36663662
if (MAJOR(dev->devt))
36673663
device_remove_file(dev, &dev_attr_dev);

0 commit comments

Comments
 (0)