[PATCH] hpet: fix division by zero in HPET_INFO
authorClemens Ladisch <clemens@ladisch.de>
Sun, 30 Oct 2005 23:03:38 +0000 (15:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:30 +0000 (17:37 -0800)
commitaf95eade68da4dfa29c5b64d79cffc9709facf00
tree17db9f696dbdbb222d9a4a41e8d02f5378fe8d48
parent8e8505be9c0ba608cbd634faa8fba361f17d2512
[PATCH] hpet: fix division by zero in HPET_INFO

Fix a division by zero that happened when the HPET_INFO ioctl was called
before a timer frequency had been set.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Cc: Bob Picco <bob.picco@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/hpet.c