scripts/get_maintainer.pl: fix possible infinite loop
authorJoe Perches <joe@perches.com>
Fri, 5 Mar 2010 21:43:07 +0000 (13:43 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Mar 2010 19:26:34 +0000 (11:26 -0800)
commit3c840c18bcd8efb37f1a565e83a9509e1ea5d105
treecf1a0d872188bf3857354a8622fff3e7dc0c0709
parenta63ceb4c36a7674f7efa90e8ba96b44a3989d717
scripts/get_maintainer.pl: fix possible infinite loop

If MAINTAINERS section entries are misformatted, it was possible to have
an infinite loop.

Correct the defect by always moving the index to the end of section + 1

Also, exit check for exclude as soon as possible.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/get_maintainer.pl