mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
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>
This commit is contained in:
parent
05d6d677ab
commit
dcbbcefb6a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue