diff options
author | Mauricio Faria de Oliveira <mfo@canonical.com> | 2023-09-28 17:28:07 -0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-10-01 14:24:34 +0900 |
commit | cbc3d00cf88fda95dbcafee3b38655b7a8f2650a (patch) | |
tree | 724cf5e7829ca3b206b0b17b3142e2e3eba7daef /include/rv | |
parent | 28d49e171676afb7df7f47798391364af9abed7f (diff) | |
download | linux-stable-cbc3d00cf88fda95dbcafee3b38655b7a8f2650a.tar.gz linux-stable-cbc3d00cf88fda95dbcafee3b38655b7a8f2650a.tar.bz2 linux-stable-cbc3d00cf88fda95dbcafee3b38655b7a8f2650a.zip |
modpost: add missing else to the "of" check
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: acbef7b76629 ("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>
Diffstat (limited to 'include/rv')
0 files changed, 0 insertions, 0 deletions