ia64/xen-unstable

changeset 18203:9ee2e41a68a1

grant_table: Remove compat-shim BUG_ON() which can fail if
GMFN==INVALID (~0UL).

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

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jul 30 15:25:09 2008 +0100 (2008-07-30)
parents bfe5ad83a491
children 21dd1fdb73d8
files xen/common/compat/grant_table.c
line diff
     1.1 --- a/xen/common/compat/grant_table.c	Wed Jul 30 10:55:06 2008 +0100
     1.2 +++ b/xen/common/compat/grant_table.c	Wed Jul 30 15:25:09 2008 +0100
     1.3 @@ -138,7 +138,6 @@ int compat_grant_table_op(unsigned int c
     1.4                          for ( i = 0; i < (_s_)->nr_frames; ++i ) \
     1.5                          { \
     1.6                              unsigned int frame = (_s_)->frame_list.p[i]; \
     1.7 -                            BUG_ON(frame != (_s_)->frame_list.p[i]); \
     1.8                              (void)__copy_to_compat_offset((_d_)->frame_list, i, &frame, 1); \
     1.9                          } \
    1.10                      } \