xen: do not unmap grant status on suspend when using v1 grant tables
PATCH 1/1 xen: do not unmap grant status on suspend when using v1 grant tables
grstatus is only used/initialised for v2 grant tables.
Signed-off-by Ian Campbell <[email protected]>
Cc Steven Smith <[email protected]>
Cc Jeremy Fitzhardinge <[email protected]>
--- drivers/xen/grant-table.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/xen/grant-table.c +2 -1
@@ -898,7 +898,8 @@ int gnttab_resume(void)int gnttab_suspend (void ) {arch_gnttab_unmap (shared.raw, nr_grant_frames); -arch_gnttab_unmap (grstatus,nr_status_frames (nr_grant_frames)); +if (grant_table_version >1 ) +arch_gnttab_unmap (grstatus,nr_status_frames (nr_grant_frames));return 0 ; }
Signature · 1 line
1.5.6.5