hw/pvrdma: Check the correct return value
authorYuval Shaia <yuval.shaia@oracle.com>
Thu, 25 Oct 2018 06:17:00 +0000 (09:17 +0300)
committerMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
Sat, 22 Dec 2018 09:09:56 +0000 (11:09 +0200)
commitdee2e53c86de37dea4f36936eab5a6aef340b8f8
tree3012d9228baf7db77de63587fbd7bba9fdd34d3e
parent891ff9f4a371da2dbd5244590eb35e8d803e18d8
hw/pvrdma: Check the correct return value

Return value of 0 means ok, we want to free the memory only in case of
error.

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Message-Id: <20181025061700.17050-1-yuval.shaia@oracle.com>
Reviewed-by: Marcel Apfelbaum<marcel.apfelbaum@gmail.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
hw/rdma/vmw/pvrdma_cmd.c