diff options
| -rw-r--r-- | drivers/xen/grant-table.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/xen/grant-table.c b/drivers/xen/grant-table.c index 9428ced0480..3745a318def 100644 --- a/drivers/xen/grant-table.c +++ b/drivers/xen/grant-table.c | |||
| @@ -462,6 +462,10 @@ int gnttab_map_refs(struct gnttab_map_grant_ref *map_ops, | |||
| 462 | return ret; | 462 | return ret; |
| 463 | 463 | ||
| 464 | for (i = 0; i < count; i++) { | 464 | for (i = 0; i < count; i++) { |
| 465 | /* Do not add to override if the map failed. */ | ||
| 466 | if (map_ops[i].status) | ||
| 467 | continue; | ||
| 468 | |||
| 465 | /* m2p override only supported for GNTMAP_contains_pte mappings */ | 469 | /* m2p override only supported for GNTMAP_contains_pte mappings */ |
| 466 | if (!(map_ops[i].flags & GNTMAP_contains_pte)) | 470 | if (!(map_ops[i].flags & GNTMAP_contains_pte)) |
| 467 | continue; | 471 | continue; |
