From patchwork Tue Feb 8 14:58:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 541001 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 p18Ex8Qh020701 for ; Tue, 8 Feb 2011 14:59:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753848Ab1BHO7C (ORCPT ); Tue, 8 Feb 2011 09:59:02 -0500 Received: from mail-gw0-f46.google.com ([74.125.83.46]:42761 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752519Ab1BHO7B (ORCPT ); Tue, 8 Feb 2011 09:59:01 -0500 Received: by gwj20 with SMTP id 20so2240656gwj.19 for ; Tue, 08 Feb 2011 06:59:00 -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=x7g/0dte/Ks0gAC8uqT+EMOZTU8AeSuwacbtOb56NP8=; b=E0SnazDjz0t657COBMzMrzGHCwU/8qvoZOWDI5wuBLOv15Dy8R7dNvuvkLufwjcMxi A1eyo0F2hoZZRv6MHTTTLDG+UOE8tqXHmDmiZyrigiBJx+qi2LSTh0d96wSkmLtb2/uA qNLkeVPh4WJlfkcr6xwGlg3yweHCv8OA0kbh4= 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=n7r7iUDJ1q2dH4CR58FrnBRrWokBQu8A0SVSuBPOKpfsxTy95JMDEJgJsomNoHVJiC Q8T9+6oCsv0GcIIKZNEKS4F/xRBvbH7MgBYxFT/PhNkW3+16nT29AdeXcX/4EoXqp1AY 9JzBu2o6nzay32PUCk6FgqRiNyvieJZgOLQbw= Received: by 10.100.57.15 with SMTP id f15mr9056785ana.239.1297177140443; Tue, 08 Feb 2011 06:59:00 -0800 (PST) Received: from [218.167.76.207] (218-167-76-207.dynamic.hinet.net [218.167.76.207]) by mx.google.com with ESMTPS id b11sm7177259ana.38.2011.02.08.06.58.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Feb 2011 06:58:59 -0800 (PST) Subject: [PATCH] video: ffb: fix ffb_probe error path From: Axel Lin To: linux-kernel@vger.kernel.org Cc: "David S. Miller" , Paul Mundt , linux-fbdev@vger.kernel.org Date: Tue, 08 Feb 2011 22:58:45 +0800 Message-ID: <1297177125.2343.3.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, 08 Feb 2011 14:59:21 +0000 (UTC) diff --git a/drivers/video/ffb.c b/drivers/video/ffb.c index 6739b2a..b5d6a46 100644 --- a/drivers/video/ffb.c +++ b/drivers/video/ffb.c @@ -1011,7 +1011,7 @@ out_dealloc_cmap: fb_dealloc_cmap(&info->cmap); out_unmap_dac: - of_iounmap(&op->resource[2], par->fbc, sizeof(struct ffb_fbc)); + of_iounmap(&op->resource[1], par->dac, sizeof(struct ffb_dac)); out_unmap_fbc: of_iounmap(&op->resource[2], par->fbc, sizeof(struct ffb_fbc));