Message ID | 1383046226-2745-1-git-send-email-yj44.cho@samsung.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A14E09F431 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 29 Oct 2013 11:30:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 79D43201DC for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 29 Oct 2013 11:30:42 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id E675F201C7 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 29 Oct 2013 11:30:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B1BD2EEADE; Tue, 29 Oct 2013 04:30:37 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by gabe.freedesktop.org (Postfix) with ESMTP id E06EAEEADE for <dri-devel@lists.freedesktop.org>; Tue, 29 Oct 2013 04:30:35 -0700 (PDT) Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MVF000JZHAK72O0@mailout3.samsung.com> for dri-devel@lists.freedesktop.org; Tue, 29 Oct 2013 20:30:34 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.43]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 0B.54.07242.A5C9F625; Tue, 29 Oct 2013 20:30:34 +0900 (KST) X-AuditID: cbfee690-b7f3d6d000001c4a-57-526f9c5a186b Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id D8.7C.08134.A5C9F625; Tue, 29 Oct 2013 20:30:34 +0900 (KST) Received: from localhost.localdomain ([10.252.75.90]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MVF0064WHAVWC10@mmp2.samsung.com>; Tue, 29 Oct 2013 20:30:33 +0900 (KST) From: YoungJun Cho <yj44.cho@samsung.com> To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [PATCH] drm: delete unconsumed pending event list in drm_events_release Date: Tue, 29 Oct 2013 20:30:26 +0900 Message-id: <1383046226-2745-1-git-send-email-yj44.cho@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMLMWRmVeSWpSXmKPExsVy+t8zbd2oOflBBvc2Clj0njvJZHHl63s2 i7NNb9gt9u6czOjA4rH92wNWj/vdx5k8+rasYgxgjuKySUnNySxLLdK3S+DKuHE7vWAbV8Wp Lw8ZGxgfc3QxcnJICJhIPOxdwQZhi0lcuLceyObiEBJYxihx+9dCRpiiP9+XQyWmM0os6e9g hXBamSQ2LT7FAlLFJqAp8fzjDlYQW0TAVKJj0lKwOLOAscSpzzeBJnFwCAsESOxcbAcSZhFQ lTi++TQrSJhXwFnixj4rEFNCQEFiziQbkOkSAvfZJPa/msMEUS4g8W3yIRaIGlmJTQeYIU6T lDi44gbLBEbBBYwMqxhFUwuSC4qT0otM9IoTc4tL89L1kvNzNzFCAnDCDsZ7B6wPMSYDjZvI LCWanA8M4LySeENjMyMLUxNTYyNzSzPShJXEedUeJQUJCaQnlqRmp6YWpBbFF5XmpBYfYmTi 4JRqYJz++3RQw4+0qP1Lv2/dZnT7Vsq1Yk+v5Y1XRFhFVq4TYzPVlNn5j8u1uCLB6eCp7ZMn nLBqnmdz+pGAcdGV+Ljtj1XMjDf+jokoCFr6ldH/5N2XjE21S49MvSdbwXwqvyZihlHaBI3j Gju58p7/VLp3cNV65ZLb2ZNvx3fkrt/zs2biVZ65fu+UWIozEg21mIuKEwHwA7ONVgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAIsWRmVeSWpSXmKPExsVy+t9jQd2oOflBBvPn8lr0njvJZHHl63s2 i7NNb9gt9u6czOjA4rH92wNWj/vdx5k8+rasYgxgjmpgtMlITUxJLVJIzUvOT8nMS7dV8g6O d443NTMw1DW0tDBXUshLzE21VXLxCdB1y8wB2qekUJaYUwoUCkgsLlbSt8M0ITTETdcCpjFC 1zckCK7HyAANJKxjzLhxO71gG1fFqS8PGRsYH3N0MXJySAiYSPz5vpwNwhaTuHBvPZDNxSEk MJ1RYkl/ByuE08oksWnxKRaQKjYBTYnnH3ewgtgiAqYSHZOWgsWZBYwlTn2+ydjFyMEhLBAg sXOxHUiYRUBV4vjm06wgYV4BZ4kb+6xATAkBBYk5k2wmMHIvYGRYxSiaWpBcUJyUnmukV5yY W1yal66XnJ+7iREc3s+kdzCuarA4xCjAwajEw2vBlh8kxJpYVlyZe4hRgoNZSYSXcyZQiDcl sbIqtSg/vqg0J7X4EGMy0O6JzFKiyfnA2MsriTc0NjEzsjQyMzYxNzYmTVhJnPdgq3WgkEB6 YklqdmpqQWoRzBYmDk6pBkafP1a3FjnP/jvP/UtV/YqJSxgS1SOZsvSY/j1Zr2EX//BWi87t vIw7UadyVvRkTjB1fqxRyv/E/kGWnWXC5AvvLV/vUH+5U6jW/uOUO/Gv3vZbLrzX2p3yo/1d WIaCqsSaOBVjhROMmXLmulmX58T8uKnJWM88+dnsM/lb9iTO0LR8smmH3G0lluKMREMt5qLi RAAmSL7EswIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Cc: kyungmin.park@samsung.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <http://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <http://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <http://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c index 3f84277..3c860b7 100644 --- a/drivers/gpu/drm/drm_fops.c +++ b/drivers/gpu/drm/drm_fops.c @@ -379,8 +379,10 @@ static void drm_events_release(struct drm_file *file_priv) } /* Remove unconsumed events */ - list_for_each_entry_safe(e, et, &file_priv->event_list, link) + list_for_each_entry_safe(e, et, &file_priv->event_list, link) { + list_del(&e->link); e->destroy(e); + } spin_unlock_irqrestore(&dev->event_lock, flags); }