Prev: vhost: fix get_user_pages_fast error handling
Next: [PATCH] ia64: ptrace: kill thread_matches()
From: Joe Perches on 23 Feb 2010 12:40 If MAINTAINERS section entries are misformatted, it was possible to have an infinite loop. Correct the defect by always moving at least one entry forward in parsing the MAINTAINERS file. Signed-off-by: Joe Perches <joe(a)perches.com> --- scripts/get_maintainer.pl | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index 2f3230d..4f2ec25 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -340,8 +340,11 @@ foreach my $file (@files) { } } - $tvi += ($end - $start); - + if ($end <= $start) { + $tvi++; + } else { + $tvi += ($end - $start); + } } foreach my $line (sort {$hash{$b} <=> $hash{$a}} keys %hash) { -- 1.7.0.14.g7e948 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Pages: 1 Prev: vhost: fix get_user_pages_fast error handling Next: [PATCH] ia64: ptrace: kill thread_matches() |