aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2018-02-26 11:36:14 +0000
committerThomas Gleixner <[email protected]>2018-02-26 12:56:05 +0000
commitf287eb9013ccf199cbfa4eabd80c36fedfc15a73 (patch)
treed1dd80a7c67fe394ed53a1b3d4f9454ceaff4560 /scripts/gcc-plugins/randomize_layout_plugin.c
parentLinux 4.16-rc3 (diff)
downloadkernel-f287eb9013ccf199cbfa4eabd80c36fedfc15a73.tar.gz
kernel-f287eb9013ccf199cbfa4eabd80c36fedfc15a73.zip
clocksource/drivers/fsl_ftm_timer: Fix error return checking
The error checks on freq for a negative error return always fails because freq is unsigned and can never be negative. Fix this by making freq a signed long. Detected with Coccinelle: drivers/clocksource/fsl_ftm_timer.c:287:5-9: WARNING: Unsigned expression compared with zero: freq <= 0 drivers/clocksource/fsl_ftm_timer.c:291:5-9: WARNING: Unsigned expression compared with zero: freq <= 0 Fixes: 2529c3a33079 ("clocksource: Add Freescale FlexTimer Module (FTM) timer support") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: Daniel Lezcano <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions