drivers/char/hpet.c: fix information leak to userland
authorVasiliy Kulikov <segooon@gmail.com>
Tue, 26 Oct 2010 21:22:15 +0000 (14:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:11 +0000 (16:52 -0700)
commitdae512edc6e945e127f0848aa757055265d70aa2
treea1e903640fc4c5b9aea63004ecfd1d5ee9916e02
parentaaaddfe0b3bb449b8734bf29bbd36141076e5277
drivers/char/hpet.c: fix information leak to userland

Structure info is copied to userland with some padding fields unitialized.
It leads to leaking of stack memory.

[akpm@linux-foundation.org: remove now-unneeded zeroing of info->hi_ireqfreq]
Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Cc: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/hpet.c