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

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

Merge "drm: use vzalloc for blob allocation"

parents 9a9d6205 69df4031
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -557,7 +557,7 @@ drm_property_create_blob(struct drm_device *dev, size_t length,
	if (!length || length > ULONG_MAX - sizeof(struct drm_property_blob))
	if (!length || length > ULONG_MAX - sizeof(struct drm_property_blob))
		return ERR_PTR(-EINVAL);
		return ERR_PTR(-EINVAL);


	blob = vmalloc(sizeof(struct drm_property_blob)+length);
	blob = vzalloc(sizeof(struct drm_property_blob)+length);
	if (!blob)
	if (!blob)
		return ERR_PTR(-ENOMEM);
		return ERR_PTR(-ENOMEM);