[PATCH] x86/platform/efi/efi_64.c: fix problem in efi_ioremap in case of a failure in init_memory_mapping.

2012-09-11 Thread T Makphaibulchoke
In the case that init_memory_mapping failed, returning a NULL, simply return. An attempt to recursively invoke efi_io_remap could result in mapping of a wrong range, 0 to size + physaddr, instead of the intended physaddr to physaddr + size - 1 range. Signed-off-by: T Makphaibulchoke ---

[PATCH] x86/platform/efi/efi_64.c: fix problem in efi_ioremap in case of a failure in init_memory_mapping.

2012-09-11 Thread T Makphaibulchoke
In the case that init_memory_mapping failed, returning a NULL, simply return. An attempt to recursively invoke efi_io_remap could result in mapping of a wrong range, 0 to size + physaddr, instead of the intended physaddr to physaddr + size - 1 range. Signed-off-by: T Makphaibulchoke t...@hp.com