]> xenbits.xensource.com Git - xen.git/commit
arm/mm: release grant lock on xenmem_add_to_physmap_one() error paths
authorJan Beulich <jbeulich@suse.com>
Wed, 23 Aug 2017 15:55:08 +0000 (17:55 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 23 Aug 2017 15:55:08 +0000 (17:55 +0200)
commit64c03bbacfb099f464c0fe0850ece71d4007d0ea
tree36b89cf4a5c5098ec5f5f99ec57b393b4a8a1117
parentb4660b4d4a35edac715c003c84326de2b0fa4f47
arm/mm: release grant lock on xenmem_add_to_physmap_one() error paths

Commit 55021ff9ab ("xen/arm: add_to_physmap_one: Avoid to map mfn 0 if
an error occurs") introduced error paths not releasing the grant table
lock. Replace them by a suitable check after the lock was dropped.

This is XSA-235.

Reported-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
master commit: 59546c1897a90fe9af5ebbbb05ead8d98b4d17b9
master date: 2017-08-23 17:45:45 +0200
xen/arch/arm/mm.c