mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-08-22 00:42:01 +02:00
modpost: fix the missed iteration for the max bit in do_input()
This loop should iterate over the range from 'min' to 'max' inclusively.
The last interation is missed.
Fixes: 1d8f430c15
("[PATCH] Input: add modalias support")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
This commit is contained in:
parent
7a6c355b55
commit
bf36b4bf1b
|
@ -656,7 +656,7 @@ static void do_input(char *alias,
|
|||
|
||||
for (i = min / BITS_PER_LONG; i < max / BITS_PER_LONG + 1; i++)
|
||||
arr[i] = TO_NATIVE(arr[i]);
|
||||
for (i = min; i < max; i++)
|
||||
for (i = min; i <= max; i++)
|
||||
if (arr[i / BITS_PER_LONG] & (1ULL << (i%BITS_PER_LONG)))
|
||||
sprintf(alias + strlen(alias), "%X,*", i);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user