aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.h
diff options
context:
space:
mode:
authorShyam Saini <[email protected]>2025-02-27 18:49:28 +0000
committerPetr Pavlu <[email protected]>2025-04-16 12:54:35 +0000
commit1c7777feb0e2f5925908c489513656ebb443a699 (patch)
tree6c6d919281d4eacb84447da634e6211dd26e1fee /net/unix/af_unix.h
parentkernel: param: rename locate_module_kobject (diff)
downloadkernel-1c7777feb0e2f5925908c489513656ebb443a699.tar.gz
kernel-1c7777feb0e2f5925908c489513656ebb443a699.zip
kernel: refactor lookup_or_create_module_kobject()
In the unlikely event of the allocation failing, it is better to let the machine boot with a not fully populated sysfs than to kill it with this BUG_ON(). All callers are already prepared for lookup_or_create_module_kobject() returning NULL. This is also preparation for calling this function from non __init code, where using BUG_ON for allocation failure handling is not acceptable. Since we are here, also start using IS_ENABLED instead of #ifdef construct. Suggested-by: Thomas Weißschuh <[email protected]> Suggested-by: Rasmus Villemoes <[email protected]> Signed-off-by: Shyam Saini <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Petr Pavlu <[email protected]>
Diffstat (limited to 'net/unix/af_unix.h')
0 files changed, 0 insertions, 0 deletions