Files
Easwar HariharanandGreg Kroah-Hartman 4908098c9e jiffies: Cast to unsigned long in secs_to_jiffies() conversion
commit bb2784d9ab upstream.

While converting users of msecs_to_jiffies(), lkp reported that some range
checks would always be true because of the mismatch between the implied int
value of secs_to_jiffies() vs the unsigned long return value of the
msecs_to_jiffies() calls it was replacing.

Fix this by casting the secs_to_jiffies() input value to unsigned long.

Fixes: b35108a51c ("jiffies: Define secs_to_jiffies()")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/all/20250130192701.99626-1-eahariha@linux.microsoft.com
Closes: https://lore.kernel.org/oe-kbuild-all/202501301334.NB6NszQR-lkp@intel.com/
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-07-24 15:55:18 +02:00
..
2026-03-04 07:19:30 -05:00
2025-09-11 17:19:15 +02:00
2024-12-14 19:53:51 +01:00
2024-10-17 15:21:32 +02:00
2026-07-24 15:54:27 +02:00
2024-12-14 19:54:37 +01:00
2026-07-24 15:54:17 +02:00
2026-01-11 15:19:01 +01:00
2026-07-24 15:55:16 +02:00
2025-07-06 10:58:04 +02:00
2026-01-11 15:18:35 +01:00
2025-06-04 14:40:25 +02:00
2026-06-01 17:39:24 +02:00
2025-08-15 12:04:54 +02:00
2026-06-19 13:37:20 +02:00
2026-01-11 15:18:48 +01:00
2025-02-01 18:30:05 +01:00
2026-01-11 15:19:13 +01:00
2024-10-17 15:21:12 +02:00