]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
modpost: trim leading spaces when processing source files list
authorRadek Krejci <radek.krejci@oracle.com>
Wed, 14 Feb 2024 09:14:07 +0000 (10:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:51:34 +0000 (09:51 +0100)
commit14bcdb288b84d134322ff2fbc4b115a812a34e75
tree0e8d260e0ac90d227d334452cc94e0c648030936
parent609c7c1cc976e740d0fed4dbeec688b3ecb5dce2
modpost: trim leading spaces when processing source files list

[ Upstream commit 5d9a16b2a4d9e8fa028892ded43f6501bc2969e5 ]

get_line() does not trim the leading spaces, but the
parse_source_files() expects to get lines with source files paths where
the first space occurs after the file path.

Fixes: 70f30cfe5b89 ("modpost: use read_text_file() and get_line() for reading text files")
Signed-off-by: Radek Krejci <radek.krejci@oracle.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/mod/sumversion.c