]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Mar 2010 16:05:48 +0000 (09:05 -0700)
commitf479dae12ac8c0bea06f4c0cacb846aae66756fd
treee8da7604d667f4818627f4c5d3dc74ea7b2d6a1b
parenta0fac0acdd368e8450cda2c75b4a8d86f1151ad4
PCI hotplug: ibmphp: read the length of ebda and map entire ebda region

commit b0fc889c4311835ae7d02f433154bc20cad9ee11 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/hotplug/ibmphp_ebda.c