From: Keir Fraser Date: Wed, 30 Jul 2008 14:25:09 +0000 (+0100) Subject: grant_table: Remove compat-shim BUG_ON() which can fail if X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14165^2~78 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fb044093f641aac7f7594e866e07733df64898e6;p=xen.git grant_table: Remove compat-shim BUG_ON() which can fail if GMFN==INVALID (~0UL). Found by Diego Ongaro Signed-off-by: Keir Fraser --- diff --git a/xen/common/compat/grant_table.c b/xen/common/compat/grant_table.c index fa4322e77d..f3a6d93776 100644 --- a/xen/common/compat/grant_table.c +++ b/xen/common/compat/grant_table.c @@ -138,7 +138,6 @@ int compat_grant_table_op(unsigned int cmd, for ( i = 0; i < (_s_)->nr_frames; ++i ) \ { \ unsigned int frame = (_s_)->frame_list.p[i]; \ - BUG_ON(frame != (_s_)->frame_list.p[i]); \ (void)__copy_to_compat_offset((_d_)->frame_list, i, &frame, 1); \ } \ } \