All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm: Fix memory leak at error path of drm_read()
@ 2014-12-04 10:56 Takashi Iwai
  2014-12-04 10:56 ` [PATCH 2/2] drm: Implement nonblocking mode in drm_read() Takashi Iwai
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Takashi Iwai @ 2014-12-04 10:56 UTC (permalink / raw)
  To: dri-devel

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 drivers/gpu/drm/drm_fops.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c
index ed7bc68f7e87..a82dc28d54f3 100644
--- a/drivers/gpu/drm/drm_fops.c
+++ b/drivers/gpu/drm/drm_fops.c
@@ -525,6 +525,7 @@ ssize_t drm_read(struct file *filp, char __user *buffer,
 		if (copy_to_user(buffer + total,
 				 e->event, e->event->length)) {
 			total = -EFAULT;
+			e->destroy(e);
 			break;
 		}
 
-- 
2.1.3

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2015-01-05 10:18 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-04 10:56 [PATCH 1/2] drm: Fix memory leak at error path of drm_read() Takashi Iwai
2014-12-04 10:56 ` [PATCH 2/2] drm: Implement nonblocking mode in drm_read() Takashi Iwai
2014-12-04 11:46 ` [PATCH 1/2] drm: Fix memory leak at error path of drm_read() Daniel Vetter
2014-12-04 11:50   ` Takashi Iwai
2014-12-04 11:51     ` Takashi Iwai
2014-12-04 11:51 ` Chris Wilson
2014-12-04 11:56   ` Takashi Iwai
2014-12-04 12:13     ` Chris Wilson
2014-12-04 12:27       ` Takashi Iwai
2014-12-04 12:28   ` Daniel Vetter
2014-12-04 16:31     ` Chris Wilson
2014-12-04 16:38       ` Chris Wilson
2014-12-04 16:55         ` Takashi Iwai
2014-12-04 21:03           ` [PATCH] drm: Make drm_read() more robust against multithreaded races Chris Wilson
2014-12-05  2:19             ` shuang.he
2014-12-05 20:59               ` Daniel Vetter
2014-12-05  8:42             ` Takashi Iwai
2015-01-05 10:18               ` [Intel-gfx] " Daniel Vetter
2014-12-05  8:44             ` Daniel Vetter
2014-12-04 17:25       ` [PATCH 1/2] drm: Fix memory leak at error path of drm_read() Daniel Vetter
2014-12-05  8:01         ` Chris Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.