Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -5
+1 -5
drivers/base/core.c
··· 3602 3602 if (error) 3603 3603 goto SysEntryError; 3604 3604 3605 - error = devtmpfs_create_node(dev); 3606 - if (error) 3607 - goto DevtmpfsError; 3605 + devtmpfs_create_node(dev); 3608 3606 } 3609 3607 3610 3608 /* Notify clients of device addition. This call must come ··· 3658 3660 done: 3659 3661 put_device(dev); 3660 3662 return error; 3661 - DevtmpfsError: 3662 - device_remove_sys_dev_entry(dev); 3663 3663 SysEntryError: 3664 3664 if (MAJOR(dev->devt)) 3665 3665 device_remove_file(dev, &dev_attr_dev);