]> xenbits.xensource.com Git - xen.git/commit
dmar: device scope mem leak fix
authorElena Ufimtseva <elena.ufimtseva@oracle.com>
Thu, 16 Jul 2015 09:50:07 +0000 (11:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 16 Jul 2015 09:50:07 +0000 (11:50 +0200)
commita8bc99b981c5ad773bd646f5986e616d26fb94d7
tree257f0ba501be566c5ad08f58344006dbe2f46a20
parente196ac7ab3f8fc690e9c91a6116136d33f41fee0
dmar: device scope mem leak fix

Release memory allocated for scope.devices dmar units on various
failure paths and when disabling dmar. Set device count after
sucessfull memory allocation, not before, in device scope parsing function.

Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Yang Zhang <yang.z.zhang@intel.com>
xen/drivers/passthrough/vtd/dmar.c