Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcbbcefb authored by Roel Kluin's avatar Roel Kluin Committed by Greg Kroah-Hartman
Browse files

Staging: poch: fix verification of memory area



fix verification of memory area

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 05d6d677
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);