summaryrefslogtreecommitdiff
path: root/fs/ceph
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-02-26 11:36:14 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-30 07:50:32 +0200
commit8a25a9d63c478b6893cab930ea1fd07c9ec0a261 (patch)
tree727c0f95c73c0692296c3d33c2c1e49023907fd1 /fs/ceph
parent23f9fb0f53b3add8669f093d58fe193846154a87 (diff)
clocksource/drivers/fsl_ftm_timer: Fix error return checking
[ Upstream commit f287eb9013ccf199cbfa4eabd80c36fedfc15a73 ] 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 <colin.king@canonical.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Daniel Lezcano <daniel.lezcano@linaro.org> Cc: kernel-janitors@vger.kernel.org Link: https://lkml.kernel.org/r/20180226113614.3092-1-colin.king@canonical.com Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ceph')
0 files changed, 0 insertions, 0 deletions