[PATCH] hpet: fix HPET_INFO calls from kernel space
authorClemens Ladisch <clemens@ladisch.de>
Sun, 30 Oct 2005 23:03:37 +0000 (15:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:30 +0000 (17:37 -0800)
commit8e8505be9c0ba608cbd634faa8fba361f17d2512
treedcb75f543bb9b75b8c6bf0260f2b5f5283533c7e
parent7811fb8f400a3dbfa027d86bb583a31c66fddfc3
[PATCH] hpet: fix HPET_INFO calls from kernel space

Fix a wrong memory access in hpet_ioctl_common().  It was not possible to use
the HPET_INFO ioctl from kernel space because it always called copy_to_user().

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