]> git.baikalelectronics.ru Git - kernel.git/commit
PCI hotplug: ibmphp: read the length of ebda and map entire ebda region
authorChandru <chandru@in.ibm.com>
Mon, 11 Jan 2010 06:19:21 +0000 (11:49 +0530)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 23 Feb 2010 00:16:58 +0000 (16:16 -0800)
commit9da1e8e6ba86dfa00153606c7d1adea61728d0c3
tree8985c7acc157bb7e40d271e136b5cdc7dd56d225
parent9a04eccae1a860fc2d395056efd903b623efb9e2
PCI hotplug: ibmphp: read the length of ebda and map entire ebda region

ibmphp driver currently maps only 1KB of ebda memory area into kernel address
space during driver initialization. This causes kernel oops when the driver is
modprobe'd and it accesses memory beyond 1KB within ebda segment. The first
byte of ebda segment actually stores the length of the ebda region in
Kilobytes. Hence make use of the length parameter and map the entire ebda
region.

Signed-off-by: Chandru Siddalingappa <chandru@linux.vnet.ibm.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/ibmphp_ebda.c