Skip to contentSkip to conversation

Patch "drm: Correct arguments to list_tail_add in create blob ioctl" has been added to the 4.2-stable tree

PATCH [email protected] 1 participant 1 message Nov 6, 2015

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

drm: Correct arguments to list_tail_add in create blob ioctl

to the 4.2-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
drm-correct-arguments-to-list_tail_add-in-create-blob-ioctl.patch
and it can be found in the queue-4.2 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 8731b269f01e16193390c7276e70530366b8d626 Mon Sep 17 00:00:00 2001

From: Maneet Singh <[email protected]>
Date: Thu, 8 Oct 2015 10:10:24 -0400
Subject: drm: Correct arguments to list_tail_add in create blob ioctl

From: Maneet Singh <[email protected]>

commit 8731b269f01e16193390c7276e70530366b8d626 upstream.

Arguments passed to list_add_tail were reversed resulting in deletion of old blob property everytime the new one is added.

Fixes

commit e2f5d2ea479b9b2619965d43db70939589afe43a

Author: Daniel Stone <[email protected]>
Date:   Fri May 22 13:34:51 2015 +0100

drm/mode: Add user blob-creation ioctl

---
 drivers/gpu/drm/drm_crtc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_crtc.c +1 -1
@@ -4573,7 +4573,7 @@ int drm_mode_createblob_ioctl(struct drm
 	 * not associated with any file_priv. */
 	mutex_lock(&dev->mode_config.blob_lock);
 	out_resp->blob_id = blob->base.id;
-	list_add_tail(&file_priv->blobs, &blob->head_file);
+	list_add_tail(&blob->head_file, &file_priv->blobs);
 	mutex_unlock(&dev->mode_config.blob_lock);
 
 	return 0;

Patches currently in stable-queue which might be from [email protected] are

queue-4.2/drm-correct-arguments-to-list_tail_add-in-create-blob-ioctl.patch