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

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

Merge "msm: kgsl: Add a check for zero size memory allocation"

parents 5e6ca24e ff9a2949
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -318,6 +318,9 @@ static inline int kgsl_allocate_global(struct kgsl_device *device,
{
	int ret;

	if (size == 0)
		return -EINVAL;

	memdesc->flags = flags;
	memdesc->priv = priv;