From patchwork Mon Jul 9 07:05:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 1171361 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id F18D93FC2A for ; Mon, 9 Jul 2012 07:27:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D24009F30A for ; Mon, 9 Jul 2012 00:22:15 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by gabe.freedesktop.org (Postfix) with ESMTP id 0B0EB9F0EF for ; Mon, 9 Jul 2012 00:05:05 -0700 (PDT) Received: from epcpsbgm1.samsung.com (mailout4.samsung.com [203.254.224.34]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M6V006K9SYNXQK0@mailout4.samsung.com> for dri-devel@lists.freedesktop.org; Mon, 09 Jul 2012 16:05:02 +0900 (KST) X-AuditID: cbfee61a-b7f616d000004b7e-92-4ffa829e9232 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 90.3E.19326.E928AFF4; Mon, 09 Jul 2012 16:05:02 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([10.90.51.53]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M6V00ATNT0DSY30@mmp2.samsung.com> for dri-devel@lists.freedesktop.org; Mon, 09 Jul 2012 16:05:02 +0900 (KST) From: Inki Dae To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [PATCH 2/2] drm/exynos: fixed exception to page allocation failure Date: Mon, 09 Jul 2012 16:05:01 +0900 Message-id: <1341817501-19162-3-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.4.1 In-reply-to: <1341817501-19162-1-git-send-email-inki.dae@samsung.com> References: <1341817501-19162-1-git-send-email-inki.dae@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrEJMWRmVeSWpSXmKPExsVy+t9jQd15Tb/8DQ72C1pc+fqezYHR4373 caYAxigum5TUnMyy1CJ9uwSujIaXJ1gLnrBWfDjSxNbA+JWli5GTQ0LAROLKq5/MELaYxIV7 69m6GLk4hASmM0os/LocylnPJLHvSDcjSBWbgKrExBX32UBsEQFTiY5JS8EmMQsUSizseQpk c3AIC3hLbFjADRJmASp/+OMP2AJeAReJHef3QS1WkFhw7y3YGE4BV4m135+A1QgB1Rz+8pV5 AiPvAkaGVYyiqQXJBcVJ6bmGesWJucWleel6yfm5mxjBPn8mtYNxZYPFIUYBDkYlHt4DNb/8 hVgTy4orcw8xSnAwK4nwPkoHCvGmJFZWpRblxxeV5qQWH2KU5mBREuc19v7qLySQnliSmp2a WpBaBJNl4uCUamCUPau3/Ktr4rXC5U0/hQ6bfNJeudjqkv6llJ0HFh00nrP1k8CCJVujO+fu SJXZqWEm8y1H5aiiWkKLVqSL/vd0Mc5zp51aZtUruZxU/Xih/FX8a3mFH3NlKx982vJc2GrR 5KPHVP8viuWaV7Vuo3Owh9fx/9JnL2/PeTyjyCTws07ilODsXxcYlViKMxINtZiLihMB4P01 +/UBAAA= X-TM-AS-MML: No Cc: Inki Dae , kyungmin.park@samsung.com, sw0312.kim@samsung.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org this patch corrects to deallocate the pages allocated already at alloc_page failure. Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_gem.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c index 4b8b988..d0b3059 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gem.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c @@ -118,7 +118,7 @@ struct page **exynos_gem_get_pages(struct drm_gem_object *obj, return pages; fail: - while (i--) + while (--i) __free_page(pages[i]); drm_free_large(pages);