Merge pull request #1256 from rosslagerwall/name-len

kpatch-build: Increase name length limit to 55 chars
This commit is contained in:
Josh Poimboeuf 2022-04-06 09:47:10 -05:00 committed by GitHub
commit e9b941a612
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -506,10 +506,10 @@ find_kobj() {
}
# Only allow alphanumerics and '_' and '-' in the module name. Everything else
# is replaced with '-'. Also truncate to 48 chars so the full name fits in the
# kernel's 56-byte module name array.
# is replaced with '-'. Also truncate to 55 chars so the full name + NUL
# terminator fits in the kernel's 56-byte module name array.
module_name_string() {
echo "${1//[^a-zA-Z0-9_-]/-}" | cut -c 1-48
echo "${1//[^a-zA-Z0-9_-]/-}" | cut -c 1-55
}
usage() {