mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
The logic which checks if the line ends with ";" is currently broken: it may try to read past the buffer. Fix it by checking before trying to access line[pos]. Signed-off-by: Mauro Carvalho Chehab <[email protected]> Acked-by: Randy Dunlap <[email protected]> Tested-by: Randy Dunlap <[email protected]> Reviewed-by: Aleksandr Loktionov <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> Message-ID: <bce51ba0260a053a0ec55a7375d6ed7a7c08026c.1772469446.git.mchehab+huawei@kernel.org>