diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-01-28 22:14:17 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@kvm.kroah.org> | 2009-01-28 15:49:06 -0800 |
commit | dcbbcefb6a6d540b605421e85fbaa4cea3fef5a2 (patch) | |
tree | 19efd74b7f5ba7ed221080ccaa288d84bf398b70 /drivers/staging | |
parent | 05d6d677ab4b975697c6a987f1dffdc55d61a160 (diff) | |
download | kernel_samsung_tuna-dcbbcefb6a6d540b605421e85fbaa4cea3fef5a2.zip kernel_samsung_tuna-dcbbcefb6a6d540b605421e85fbaa4cea3fef5a2.tar.gz kernel_samsung_tuna-dcbbcefb6a6d540b605421e85fbaa4cea3fef5a2.tar.bz2 |
Staging: poch: fix verification of memory area
fix verification of memory area
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/poch/poch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/poch/poch.c b/drivers/staging/poch/poch.c index ec343ef..0d111dd 100644 --- a/drivers/staging/poch/poch.c +++ b/drivers/staging/poch/poch.c @@ -1026,7 +1026,7 @@ static int poch_ioctl(struct inode *inode, struct file *filp, } break; case POCH_IOC_GET_COUNTERS: - if (access_ok(VERIFY_WRITE, argp, sizeof(struct poch_counters))) + if (!access_ok(VERIFY_WRITE, argp, sizeof(struct poch_counters))) return -EFAULT; spin_lock_irq(&channel->counters_lock); |