aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorRandy Dunlap <[email protected]>2022-02-28 20:18:29 -0800
committerGreg Kroah-Hartman <[email protected]>2022-03-18 14:27:51 +0100
commitf2aad54703dbe630f9d8b235eb58e8c8cc78f37d (patch)
tree1d842f87265ca5873a02f7879e35a38b53322675 /net/switchdev/switchdev.c
parent4b775aaf1ea9997f5eb1a792f357a7b81a1fc632 (diff)
driver core: dd: fix return value of __setup handler
When "driver_async_probe=nulltty" is used on the kernel boot command line, it causes an Unknown parameter message and the string is added to init's environment strings, polluting them. Unknown kernel command line parameters "BOOT_IMAGE=/boot/bzImage-517rc6 driver_async_probe=nulltty", will be passed to user space. Run /sbin/init as init process with arguments: /sbin/init with environment: HOME=/ TERM=linux BOOT_IMAGE=/boot/bzImage-517rc6 driver_async_probe=nulltty Change the return value of the __setup function to 1 to indicate that the __setup option has been handled. Link: lore.kernel.org/r/[email protected] Fixes: 1ea61b68d0f8 ("async: Add cmdline option to specify drivers to be async probed") Cc: Feng Tang <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: "Rafael J. Wysocki" <[email protected]> Reported-by: Igor Zhbanov <[email protected]> Reviewed-by: Feng Tang <[email protected]> Signed-off-by: Randy Dunlap <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions