Files
erofs-linux/kernel
Ingo Molnar 41cf54455d [PATCH] Fix multiple conversion bugs in msecs_to_jiffies
Fix multiple conversion bugs in msecs_to_jiffies().

The main problem is that this condition:

	if (m > jiffies_to_msecs(MAX_JIFFY_OFFSET))

overflows if HZ is smaller than 1000!

This change is user-visible: for HZ=250 SUS-compliant poll()-timeout
value of -20 is mistakenly converted to 'immediate timeout'.

(The new dyntick code also triggered this, that's how we noticed.)

Signed-off-by: Ingo Molnar <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: john stultz <[email protected]>
Cc: Roman Zippel <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2007-02-16 08:13:56 -08:00
..
2007-02-16 08:13:56 -08:00
…
2006-12-08 08:28:46 -08:00
2007-02-11 10:51:32 -08:00
…
2007-02-16 08:13:56 -08:00
…
2006-12-07 08:39:36 -08:00
…
…
2007-02-07 10:37:12 -08:00
…
2007-02-07 10:37:12 -08:00
…
…
…
…
…
…
…
2007-02-16 08:13:56 -08:00
2006-12-10 09:55:41 -08:00
…
…
…
…