projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05d6d67
)
Staging: poch: fix verification of memory area
author
Roel Kluin
<roel.kluin@gmail.com>
Wed, 28 Jan 2009 21:14:17 +0000
(22:14 +0100)
committer
Greg Kroah-Hartman
<gregkh@kvm.kroah.org>
Wed, 28 Jan 2009 23:49:06 +0000
(15:49 -0800)
fix verification of memory area
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/poch/poch.c
patch
|
blob
|
history
diff --git
a/drivers/staging/poch/poch.c
b/drivers/staging/poch/poch.c
index ec343ef53a85c63b54393a06f4ee95c77e1dc12c..0d111ddfabb22c15408b14b891c094022fe85225 100644
(file)
--- 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);