From patchwork Wed Jan 13 01:26:40 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 72491 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0D1RnE0017971 for ; Wed, 13 Jan 2010 01:27:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752256Ab0AMB1g (ORCPT ); Tue, 12 Jan 2010 20:27:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753832Ab0AMB1f (ORCPT ); Tue, 12 Jan 2010 20:27:35 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:60112 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753105Ab0AMB1d (ORCPT ); Tue, 12 Jan 2010 20:27:33 -0500 Received: from imap1.linux-foundation.org (imap1.linux-foundation.org [140.211.169.55]) by smtp1.linux-foundation.org (8.14.2/8.13.5/Debian-3ubuntu1.1) with ESMTP id o0D1QeYu006691 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 12 Jan 2010 17:26:41 -0800 Received: from akpm.mtv.corp.google.com (localhost [127.0.0.1]) by imap1.linux-foundation.org (8.13.5.20060308/8.13.5/Debian-3ubuntu1.1) with SMTP id o0D1QeLV007246; Tue, 12 Jan 2010 17:26:40 -0800 Date: Tue, 12 Jan 2010 17:26:40 -0800 From: Andrew Morton To: Chandru Cc: linux-kernel@vger.kernel.org, gregkh@suse.de, linux-pci@vger.kernel.org, Jesse Barnes , stable@kernel.org Subject: Re: [PATCH] ibmphp : read the length of ebda and map entire ebda region Message-Id: <20100112172640.954027aa.akpm@linux-foundation.org> In-Reply-To: <201001091712.25655.chandru@in.ibm.com> References: <201001091712.25655.chandru@in.ibm.com> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.9; x86_64-pc-linux-gnu) Mime-Version: 1.0 X-Spam-Status: No, hits=-5.016 required=5 tests=AWL, BAYES_00, OSDL_HEADER_SUBJECT_BRACKETED, PATCH_SUBJECT_OSDL X-Spam-Checker-Version: SpamAssassin 3.2.4-osdl_revision__1.47__ X-MIMEDefang-Filter: lf$Revision: 1.188 $ X-Scanned-By: MIMEDefang 2.63 on 140.211.169.13 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org --- a/drivers/pci/hotplug/ibmphp_ebda.c~ibmphp-read-the-length-of-ebda-and-map-entire-ebda-region-fix +++ a/drivers/pci/hotplug/ibmphp_ebda.c @@ -261,6 +261,8 @@ int __init ibmphp_access_ebda (void) debug ("returned ebda segment: %x\n", ebda_seg); io_mem = ioremap(ebda_seg<<4, 1); + if (!io_mem) + return -ENOMEM; ebda_sz = readb(io_mem); iounmap(io_mem); debug("ebda size: %d(KiB)\n", ebda_sz);