mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[IA64] memory exchange: ia64 counter part of cs 10353 xen-unstable.hg
IA64 counter part of the change set 10353:bd1a0b2bb2d4596227951ad6d36cb4fcc2d00a8e of xen-unstable.hg Only destroy a machine-contiguous memory region if it really is contiguous. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
This commit is contained in:
1 parent
b95bd4c873
commit
0495f6eb85
1 file changed
+3
@@ -275,6 +275,9 @@ __xen_destroy_contiguous_region(unsigned long vstart, unsigned int order)
|
||||
struct xen_memory_reservation reservation;
|
||||
unsigned long i;
|
||||
|
||||
if (!test_bit(start_gpfn, contiguous_bitmap))
|
||||
return;
|
||||
|
||||
gpfns = kmalloc(sizeof(gpfns[0]) * num_gpfn,
|
||||
GFP_KERNEL | __GFP_NOFAIL);
|
||||
for (i = 0; i < num_gpfn; i++) {
|
||||
|
||||