promote_l4_table() is different from its lower level helpers, by having an
extra return path out of the middle of the loop in the case of a failure.
Break from the loop, which is consistent with the other helpers, and
functionally equivalent.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
}
}
if ( rc < 0 )
- {
- unmap_domain_page(pl4e);
- return rc;
- }
+ break;
pl4e[i] = adjust_guest_l4e(l4e, d);
}