exec: fix madvise of NULL pointer
commita904c91196a9c5dbd7b9abcd3d40b0824286fb1c
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Jan 2015 15:18:35 +0000 (21 16:18 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Jan 2015 11:27:05 +0000 (26 12:27 +0100)
treef030234faba54dd872efc38f4d2671d142f661ef
parentdd858343a73c5c47019c6ade282a91681e0d7105
exec: fix madvise of NULL pointer

Coverity flags this as "dereference after null check".  Not quite a
dereference, since it will just EFAULT, but still nice to fix.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec.c