summaryrefslogtreecommitdiffstats
path: root/drivers/virt/coco/sev-guest
diff options
context:
space:
mode:
authorRoman Smirnov <r.smirnov@omp.ru>2024-03-19 11:13:44 +0300
committerHelge Deller <deller@gmx.de>2024-03-19 13:20:20 +0100
commitc2d953276b8b27459baed1277a4fdd5dd9bd4126 (patch)
treee34231f5c097e9615e72765af90c608aa69ef363 /drivers/virt/coco/sev-guest
parent152609795dbf02f004c86049b75c23f4e68071d8 (diff)
downloadlinux-stable-c2d953276b8b27459baed1277a4fdd5dd9bd4126.tar.gz
linux-stable-c2d953276b8b27459baed1277a4fdd5dd9bd4126.tar.bz2
linux-stable-c2d953276b8b27459baed1277a4fdd5dd9bd4126.zip
fbmon: prevent division by zero in fb_videomode_from_videomode()
The expression htotal * vtotal can have a zero value on overflow. It is necessary to prevent division by zero like in fb_var_to_videomode(). Found by Linux Verification Center (linuxtesting.org) with Svace. Signed-off-by: Roman Smirnov <r.smirnov@omp.ru> Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/virt/coco/sev-guest')
0 files changed, 0 insertions, 0 deletions