diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-06-03 11:02:31 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-03 22:38:55 +0200 |
commit | e919b86c3b018c0e0c5e522354e743dcc0824ee1 (patch) | |
tree | 213c6525f5beb9afd7c94533514eac16ab3b0203 /drivers/iio/buffer_cb.c | |
parent | drivers: staging: zcache: fix compile error (diff) | |
download | linux-e919b86c3b018c0e0c5e522354e743dcc0824ee1.tar.xz linux-e919b86c3b018c0e0c5e522354e743dcc0824ee1.zip |
staging: alarm-dev: information leak in alarm_ioctl()
Smatch complains that 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.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/buffer_cb.c')
0 files changed, 0 insertions, 0 deletions