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

Commit 9e266128 authored by Rasmus Villemoes's avatar Rasmus Villemoes Committed by Daniel Vetter
Browse files
parent 07a6dc19
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -815,11 +815,8 @@ int vmw_surface_define_ioctl(struct drm_device *dev, void *data,
	    srf->sizes[0].height == 64 &&
	    srf->format == SVGA3D_A8R8G8B8) {

		srf->snooper.image = kmalloc(64 * 64 * 4, GFP_KERNEL);
		/* clear the image */
		if (srf->snooper.image) {
			memset(srf->snooper.image, 0x00, 64 * 64 * 4);
		} else {
		srf->snooper.image = kzalloc(64 * 64 * 4, GFP_KERNEL);
		if (!srf->snooper.image) {
			DRM_ERROR("Failed to allocate cursor_image\n");
			ret = -ENOMEM;
			goto out_no_copy;