linux-stable/scripts
Mauricio Faria de Oliveira c8d3048246 modpost: add missing else to the "of" check
[ Upstream commit cbc3d00cf8 ]

Without this 'else' statement, an "usb" name goes into two handlers:
the first/previous 'if' statement _AND_ the for-loop over 'devtable',
but the latter is useless as it has no 'usb' device_id entry anyway.

Tested with allmodconfig before/after patch; no changes to *.mod.c:

    git checkout v6.6-rc3
    make -j$(nproc) allmodconfig
    make -j$(nproc) olddefconfig

    make -j$(nproc)
    find . -name '*.mod.c' | cpio -pd /tmp/before

    # apply patch

    make -j$(nproc)
    find . -name '*.mod.c' | cpio -pd /tmp/after

    diff -r /tmp/before/ /tmp/after/
    # no difference

Fixes: acbef7b766 ("modpost: fix module autoloading for OF devices with generic compatible property")
Signed-off-by: Mauricio Faria de Oliveira <mfo@canonical.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-10-10 21:43:41 +02:00
..
basic
coccinelle
dtc scripts/dtc: dtx_diff: remove broken example from help text 2022-01-27 09:01:01 +01:00
gcc-plugins gcc-plugins: latent_entropy: use /dev/urandom 2022-04-20 09:08:32 +02:00
gdb
genksyms
kconfig kconfig: display recursive dependency resolution hint just once 2022-12-08 11:16:30 +01:00
ksymoops
mod modpost: add missing else to the "of" check 2023-10-10 21:43:41 +02:00
package
selinux selinux: use "grep -E" instead of "egrep" 2022-10-26 13:16:58 +02:00
tracing scripts/tracing: fix the bug that can't parse raw_trace_func 2021-08-15 13:03:31 +02:00
.gitignore
adjust_autoksyms.sh
asn1_compiler.c ASN.1: Fix check for strdup() success 2023-04-26 11:18:58 +02:00
bloat-o-meter scripts: switch explicitly to Python 3 2021-06-03 08:36:11 +02:00
bootgraph.pl
check_00index.sh
check_extable.sh
checkincludes.pl
checkkconfigsymbols.py
checkpatch.pl checkpatch: fix unescaped left brace 2020-12-29 13:47:02 +01:00
checkstack.pl
checksyscalls.sh
checkversion.pl
cleanfile
cleanpatch
coccicheck
config tweewide: Fix most Shebang lines 2021-06-03 08:36:11 +02:00
conmakehash.c
const_structs.checkpatch
decode_stacktrace.sh scripts/decode_stacktrace: strip basepath from all paths 2020-07-29 07:42:54 +02:00
decodecode
depmod.sh depmod: handle the case of /sbin/depmod without /sbin in PATH 2021-01-12 20:09:06 +01:00
diffconfig scripts: switch explicitly to Python 3 2021-06-03 08:36:11 +02:00
export_report.pl
extract-cert.c cert host tools: Stop complaining about deprecated OpenSSL functions 2022-11-25 17:36:47 +01:00
extract-ikconfig
extract-module-sig.pl
extract-sys-certs.pl
extract-vmlinux
extract_xc3028.pl
faddr2line
gcc-goto.sh
gcc-ld
gcc-plugin.sh
gcc-version.sh
gcc-x86_32-has-stack-protector.sh
gcc-x86_64-has-stack-protector.sh
gen_initramfs_list.sh
get_dvb_firmware
get_maintainer.pl
gfp-translate
headerdep.pl
headers.sh
headers_check.pl
headers_install.sh
insert-sys-cert.c
kallsyms.c
Kbuild.include
kernel-doc
ld-version.sh
leaking_addresses.pl leaking_addresses: Always print a trailing newline 2021-11-26 11:40:28 +01:00
Lindent
link-vmlinux.sh
Makefile scripts: set proper OpenSSL include dir also for sign-file 2021-03-07 11:27:41 +01:00
Makefile.asm-generic
Makefile.build tracing: Avoid calling cc-option -mrecord-mcount for every Makefile 2021-02-23 14:00:33 +01:00
Makefile.clean
Makefile.dtbinst
Makefile.extrawarn Makefile.extrawarn: Move -Wcast-function-type-strict to W=1 2022-10-26 13:16:51 +02:00
Makefile.gcc-plugins
Makefile.headersinst
Makefile.help
Makefile.host
Makefile.kasan
Makefile.lib
Makefile.modbuiltin
Makefile.modinst
Makefile.modpost kbuild: Fix include path in scripts/Makefile.modpost 2022-09-05 10:25:06 +02:00
Makefile.modsign
Makefile.ubsan lib/ubsan: remove returns-nonnull-attribute checks 2023-09-23 10:46:52 +02:00
makelst
markup_oops.pl
mkcompile_h kbuild: mkcompile_h: consider timestamp if KBUILD_BUILD_TIMESTAMP is set 2021-07-28 11:12:15 +02:00
mkmakefile
mksysmap mksysmap: Fix the mismatch of 'L0' symbols in System.map 2022-09-28 10:56:49 +02:00
mkuboot.sh
module-common.lds
namespace.pl
objdiff
parse-maintainers.pl
patch-kernel
pnmtologo.c
profile2linkerlist.pl
prune-kernel
recordmcount.c recordmcount: Fix memory leaks in the uwrite function 2023-05-30 12:38:36 +01:00
recordmcount.h
recordmcount.pl recordmcount.pl: fix typo in s390 mcount regex 2022-01-05 12:33:48 +01:00
setlocalversion scripts/setlocalversion: make git describe output more reliable 2020-11-05 11:06:51 +01:00
show_delta tweewide: Fix most Shebang lines 2021-06-03 08:36:11 +02:00
sign-file.c cert host tools: Stop complaining about deprecated OpenSSL functions 2022-11-25 17:36:47 +01:00
sortextable.c
sortextable.h
spelling.txt
sphinx-pre-install tweewide: Fix most Shebang lines 2021-06-03 08:36:11 +02:00
stackdelta
stackusage
tags.sh scripts/tags.sh: Resolve gtags empty index generation 2023-08-11 11:33:32 +02:00
unifdef.c
ver_linux
xen-hypercalls.sh
xz_wrap.sh