From patchwork Tue Feb 15 09:35:02 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 558311 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1F9Z8U4025064 for ; Tue, 15 Feb 2011 09:35:08 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753993Ab1BOJfH (ORCPT ); Tue, 15 Feb 2011 04:35:07 -0500 Received: from mail-pz0-f46.google.com ([209.85.210.46]:39627 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751089Ab1BOJfF (ORCPT ); Tue, 15 Feb 2011 04:35:05 -0500 Received: by pzk35 with SMTP id 35so972724pzk.19 for ; Tue, 15 Feb 2011 01:35:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:cc:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=Y3WesKoe4NCogaTb22/CyBjYpuRVFgEH+Gy0FA8kkUU=; b=EoUHJdBcXC7Lw1i2qE+qtzFZA9bhYeyqXb85KHI0kKtlWWpQwJ7Yx5DhS9lphsbRvB 3Mqoa+NQGERW1AxAPu2KowgYEpCYnQw4HKjfgP5qSr6H36so7lRN+ng6oCtRfFIGzZm3 46tiQ3bte/gr98yfFsbTH5lZNoi2u2QGTvkK0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=RLOqNA6kzuwoh7kwd8TqoLMiRCJcAT86UbQXw17ESRxJIa9nE3A4Wq94VDVjQTi2or 6nVAnedaztB6ro8Alu5sOT30Dn3Nu8EJrNKd8xRL57tLA7ZspsKEXaIu75nUF5Vp4XcT dayILrniGalrVjVCKodI9FCLn2VZ2ARj1e/K0= Received: by 10.143.167.14 with SMTP id u14mr4030987wfo.115.1297762504072; Tue, 15 Feb 2011 01:35:04 -0800 (PST) Received: from [218.167.78.34] (218-167-78-34.dynamic.hinet.net [218.167.78.34]) by mx.google.com with ESMTPS id e14sm5431765wfg.8.2011.02.15.01.35.01 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Feb 2011 01:35:02 -0800 (PST) Subject: [PATCH] video: add missing framebuffer_release in error path From: Axel Lin To: linux-kernel@vger.kernel.org Cc: "David S. Miller" , Paul Mundt , linux-fbdev@vger.kernel.org Date: Tue, 15 Feb 2011 17:35:02 +0800 Message-ID: <1297762502.4049.2.camel@phoenix> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 15 Feb 2011 09:35:10 +0000 (UTC) diff --git a/drivers/video/cg14.c b/drivers/video/cg14.c index 2424953..2063a63 100644 --- a/drivers/video/cg14.c +++ b/drivers/video/cg14.c @@ -565,6 +565,7 @@ out_dealloc_cmap: out_unmap_regs: cg14_unmap_regs(op, info, par); + framebuffer_release(info); out_err: return err; diff --git a/drivers/video/cg6.c b/drivers/video/cg6.c index 2b5a970..f3b8848 100644 --- a/drivers/video/cg6.c +++ b/drivers/video/cg6.c @@ -822,6 +822,7 @@ out_dealloc_cmap: out_unmap_regs: cg6_unmap_regs(op, info, par); + framebuffer_release(info); out_err: return err; diff --git a/drivers/video/tcx.c b/drivers/video/tcx.c index 77ad279..3d84235 100644 --- a/drivers/video/tcx.c +++ b/drivers/video/tcx.c @@ -481,6 +481,7 @@ out_dealloc_cmap: out_unmap_regs: tcx_unmap_regs(op, info, par); + framebuffer_release(info); out_err: return err;