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

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

Merge "qmp_core: Return error for invalid input"

parents a09b72fd 8d95b015
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -498,7 +498,8 @@ static long qmp_sphinx_logk_set_mapping(unsigned long arg)
					(__u32 __user *)arg, sizeof(__u32)))
		return -EFAULT;

	if (0 == num_elements)
	if ((0 == num_elements) || (num_elements >
		(UINT_MAX / sizeof(struct qmp_sphinx_source_mask))))
		return -EFAULT;

	if (NULL != pmask) {