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

Commit b869650d authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: adsprpc: use correct size while copying user data"

parents c0c9fb90 93c75f29
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3320,7 +3320,8 @@ static int fastrpc_internal_invoke2(struct fastrpc_file *fl,
						(void *)inv2->invparam, fl);
		break;
	case FASTRPC_INVOKE2_KERNEL_OPTIMIZATIONS:
		if (inv2->size != sizeof(uint32_t)) {
		size = sizeof(uint32_t);
		if (inv2->size != size) {
			err = -EBADE;
			goto bail;
		}