diff options
Diffstat (limited to 'scripts/checkpatch.pl')
| -rwxr-xr-x | scripts/checkpatch.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 4523dd6d0476..d43a446941ce 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -6167,7 +6167,8 @@ sub process { | |||
| 6167 | 6167 | ||
| 6168 | # check for krealloc arg reuse | 6168 | # check for krealloc arg reuse |
| 6169 | if ($perl_version_ok && | 6169 | if ($perl_version_ok && |
| 6170 | $line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*krealloc\s*\(\s*\1\s*,/) { | 6170 | $line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*krealloc\s*\(\s*($Lval)\s*,/ && |
| 6171 | $1 eq $3) { | ||
| 6171 | WARN("KREALLOC_ARG_REUSE", | 6172 | WARN("KREALLOC_ARG_REUSE", |
| 6172 | "Reusing the krealloc arg is almost always a bug\n" . $herecurr); | 6173 | "Reusing the krealloc arg is almost always a bug\n" . $herecurr); |
| 6173 | } | 6174 | } |
