]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
grant_table: Remove compat-shim BUG_ON() which can fail if
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 30 Jul 2008 14:25:59 +0000 (15:25 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 30 Jul 2008 14:25:59 +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-unstable changeset:   18177:9ee2e41a68a1fc05d7fd15f00d87ebd0e1818b93
xen-unstable date:        Wed Jul 30 15:25:09 2008 +0100

xen/common/compat/grant_table.c

index 8781a331cf4e3575806b34dc46a9f97052a104b5..ade625aed8afab412855fe83d223c5a03ad7665e 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); \
                         } \
                     } \