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

Commit 371102bf authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mmc: core : fix arbitrary read/write to user space"

parents b1b49916 45c571f4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -663,6 +663,9 @@ static ssize_t mmc_bkops_stats_write(struct file *filp,
	if (!card)
		return cnt;

	if (!access_ok(VERIFY_READ, ubuf, cnt))
		return cnt;

	bkops_stats = &card->bkops_info.bkops_stats;

	sscanf(ubuf, "%d", &value);