mirror of
https://github.com/torvalds/linux.git
synced 2026-12-02 03:22:37 +00:00
When "cp >= barg_buf + BARG_LEN-2", it breaks internel looping 'while', but outside loop 'for' still has effect, so "*cp++ = ' '" will continue repeating which may cause memory overflow. So need additional length check for it in the outside looping. Also beautify the related code which found by "./scripts/checkpatch.pl" Signed-off-by: Chen Gang <[email protected]> Signed-off-by: David S. Miller <[email protected]>