]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
staging: alarm-dev: information leak in alarm_compat_ioctl()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 4 Jun 2013 13:13:25 +0000 (16:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jun 2013 17:26:14 +0000 (10:26 -0700)
commit60bba385c5e86ee6a654e3345093eb48e258eb1d
tree46a792a0171a3d2b6fc7e1993c22343ad1c89574
parente919b86c3b018c0e0c5e522354e743dcc0824ee1
staging: alarm-dev: information leak in alarm_compat_ioctl()

If we pass an invalid clock type then "ts" is never set.  We need to
check for errors earlier, otherwise we end up passing uninitialized
stack data to userspace.

Reported-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/alarm-dev.c