tests/resource: Initialise gnttab before xenforeignmemory_map_resource()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 19 Feb 2022 16:59:01 +0000 (16:59 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 21 Feb 2022 18:17:56 +0000 (18:17 +0000)
commit39bcecb9a8fe25d3a1e372187d6358f25ffb06bb
treef4741edbf391fa8e1e7aab19d88bba9b16038655
parent686f13cfce1d95464ff39fb59ac1f85163cea03b
tests/resource: Initialise gnttab before xenforeignmemory_map_resource()

It's the 'addr' input to mmap(), and currently consuming stack rubble.

Coverity-ID: 1500115
Fixes: c7a7f14b9299 ("tests/resource: Extend to check that the grant frames are mapped correctly")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
tools/tests/resource/test-resource.c