bus/vmbus: fix check for mmap failure
authorStephen Hemminger <sthemmin@microsoft.com>
Fri, 8 Feb 2019 03:44:03 +0000 (19:44 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 29 Mar 2019 12:44:02 +0000 (13:44 +0100)
commit3f9277031a2e0fc6e61503e55045bf41fc2bf171
tree664728e255638379a3ff28383ba9b5a05259c287
parent4a9efcddaddd2477d370f3720bf93079717c6ddb
bus/vmbus: fix check for mmap failure

The code was testing the result of mmap incorrectly.
I.e the test that a local pointer is not MAP_FAILED would
always succeed and therefore hid any potential problems.

Fixes: 831dba47bd36 ("bus/vmbus: add Hyper-V virtual bus support")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
drivers/bus/vmbus/linux/vmbus_uio.c