[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] xen/arm: initialize access
commit 8d84e701fdc3825f65e32e34f14c0f9ccfe359e1 Author: Stefano Stabellini <sstabellini@xxxxxxxxxx> AuthorDate: Tue Nov 6 14:05:57 2018 -0800 Commit: Julien Grall <julien.grall@xxxxxxx> CommitDate: Fri Nov 9 11:49:40 2018 +0000 xen/arm: initialize access Initialize variable *access before returning it back to the caller. It makes the code a bit nicer and it is a safety certification requirement. M3CM Rule-9.1: The value of an object with automatic storage duration shall not be read before it has been set QAVerify: 2962 Signed-off-by: Stefano Stabellini <stefanos@xxxxxxxxxx> Acked-by: Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx> Acked-by: Julien Grall <julien.grall@xxxxxxx> CC: rcojocaru@xxxxxxxxxxxxxxx CC: Tamas K Lengyel <tamas@xxxxxxxxxxxxx> --- xen/arch/arm/mem_access.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/arm/mem_access.c b/xen/arch/arm/mem_access.c index 653d96050d..86ddb29c55 100644 --- a/xen/arch/arm/mem_access.c +++ b/xen/arch/arm/mem_access.c @@ -47,6 +47,7 @@ static int __p2m_get_mem_access(struct domain *d, gfn_t gfn, }; ASSERT(p2m_is_locked(p2m)); + *access = p2m->default_access; /* If no setting was ever set, just return rwx. */ if ( !p2m->mem_access_enabled ) -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |