Skip to content

Commit

Permalink
Staging: poch: fix verification of memory area
Browse files Browse the repository at this point in the history
fix verification of memory area

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Roel Kluin authored and Greg Kroah-Hartman committed Jan 28, 2009
1 parent 05d6d67 commit dcbbcef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/poch/poch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dcbbcef

Please sign in to comment.