x86/mm: Don't dereference p2m pointer before NULL check.
authorTim Deegan <tim@xen.org>
Thu, 12 Sep 2013 08:56:12 +0000 (09:56 +0100)
committerTim Deegan <tim@xen.org>
Thu, 12 Sep 2013 16:47:08 +0000 (17:47 +0100)
commitb5f9a29421d0d2587683e3a91f0659102e80a942
treeea503403751e434221ca15384bb7c29e258b69a8
parent06d086832155fc7f5344e9d108b979de34674d11
x86/mm: Don't dereference p2m pointer before NULL check.

Not a security bug, because in fact this is never called with a NULL
argument.

Coverity CID 1055955

Signed-off-by: Tim Deegan <tim@xen.org>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm/p2m.c