aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/lima/lima_devfreq.c
diff options
context:
space:
mode:
authorJohn Ogness <[email protected]>2021-01-24 20:27:28 +0000
committerPetr Mladek <[email protected]>2021-01-25 09:37:08 +0000
commit08d60e5999540110576e7c1346d486220751b7f9 (patch)
tree34dec1b042b178aff436dac062169aec4534fb42 /drivers/gpu/drm/lima/lima_devfreq.c
parentprintk: fix buffer overflow potential for print_text() (diff)
downloadkernel-08d60e5999540110576e7c1346d486220751b7f9.tar.gz
kernel-08d60e5999540110576e7c1346d486220751b7f9.zip
printk: fix string termination for record_print_text()
Commit f0e386ee0c0b ("printk: fix buffer overflow potential for print_text()") added string termination in record_print_text(). However it used the wrong base pointer for adding the terminator. This led to a 0-byte being written somewhere beyond the buffer. Use the correct base pointer when adding the terminator. Fixes: f0e386ee0c0b ("printk: fix buffer overflow potential for print_text()") Reported-by: Sven Schnelle <[email protected]> Signed-off-by: John Ogness <[email protected]> Signed-off-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/lima/lima_devfreq.c')
0 files changed, 0 insertions, 0 deletions