grant_table: Remove compat-shim BUG_ON() which can fail if
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 30 Jul 2008 14:25:09 +0000 (15:25 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 30 Jul 2008 14:25:09 +0000 (15:25 +0100)
GMFN==INVALID (~0UL).

Found by Diego Ongaro <diego.ongaro@citrix.com>

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/common/compat/grant_table.c

index fa4322e77d89e850e9dde5ff6c48a8869ee0350c..f3a6d937763a1cb121e2826f4b5e4f621131a021 100644 (file)
@@ -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); \
                         } \
                     } \