From: Jan Beulich Date: Thu, 22 Jun 2017 07:49:03 +0000 (+0200) Subject: gnttab: remove redundant xenheap check from gnttab_transfer() X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~1946 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5ec3ef77d0c770e0cdc0c7dbee5015693eadbc6a;p=xen.git gnttab: remove redundant xenheap check from gnttab_transfer() The message isn't very useful, and the check is being done by steal_page() anyway. Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper --- diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c index 03de2be4e7..d3d8392c52 100644 --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -1843,15 +1843,6 @@ gnttab_transfer( } page = mfn_to_page(mfn); - if ( unlikely(is_xen_heap_page(page)) ) - { - put_gfn(d, gop.mfn); - gdprintk(XENLOG_INFO, "gnttab_transfer: xen frame %lx\n", - (unsigned long)gop.mfn); - gop.status = GNTST_bad_page; - goto copyback; - } - if ( steal_page(d, page, 0) < 0 ) { put_gfn(d, gop.mfn);