aboutsummaryrefslogtreecommitdiff
path: root/drivers/pwm/pwm-xilinx.c
diff options
context:
space:
mode:
authorRoman Smirnov <[email protected]>2024-03-19 11:13:44 +0300
committerHelge Deller <[email protected]>2024-03-19 13:20:20 +0100
commitc2d953276b8b27459baed1277a4fdd5dd9bd4126 (patch)
treee34231f5c097e9615e72765af90c608aa69ef363 /drivers/pwm/pwm-xilinx.c
parent152609795dbf02f004c86049b75c23f4e68071d8 (diff)
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 <[email protected]> Reviewed-by: Sergey Shtylyov <[email protected]> Signed-off-by: Helge Deller <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-xilinx.c')
0 files changed, 0 insertions, 0 deletions