diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-14 08:59:33 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-14 09:01:30 +0100 |
commit | 17c45768fdf970b8a2ea9745783ff6a0512fca11 (patch) | |
tree | 0e4618069569ce87a1bb9b4cea8339ee3ac14537 /drivers/base/core.c | |
parent | 48c9899affd51f7acfc07a3f4d777b6eeb73a451 (diff) |
Revert "driver core: add error handling for devtmpfs_create_node()"
This reverts commit 31b4b6730fd4f5d503c9f23619c920ce7b794754 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>
Diffstat (limited to 'drivers/base/core.c')
-rw-r--r-- | drivers/base/core.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index 4fc6f27641bf..f9297c68214a 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -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); |