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

Commit 27ccf48e 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: Fix a possible memory leak in kgsl_ioctl_map_user_mem"

parents c695aff5 4c600ecb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2995,7 +2995,7 @@ long kgsl_ioctl_map_user_mem(struct kgsl_device_private *dev_priv,
			(param->flags & KGSL_MEMFLAGS_SECURE)) {
		dev_WARN_ONCE(dev_priv->device->dev, 1,
				"Secure buffer not supported");
		return -EINVAL;
		goto error;
	}

	if (param->flags & KGSL_MEMFLAGS_SECURE) {
@@ -3004,7 +3004,7 @@ long kgsl_ioctl_map_user_mem(struct kgsl_device_private *dev_priv,
			KGSL_DRV_ERR(dev_priv->device,
				 "Secure buffer size %zx must be %x aligned",
				 entry->memdesc.size, SZ_1M);
			return -EINVAL;
			goto error;
		}
	}