summaryrefslogtreecommitdiff
path: root/drivers/misc/ibmvmc.c
diff options
context:
space:
mode:
authorBryant G. Ly <bryantly@linux.ibm.com>2018-08-06 16:31:00 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-12 10:31:00 +0300
commitc55e9318871cd06e4aa10f5023cc2dcdfbb08577 (patch)
tree208062f6cbe7e97028dd8be5a42db8ac10af3700 /drivers/misc/ibmvmc.c
parentda1b9564e85b1d7baf66cbfabcab27e183a1db63 (diff)
downloadlinux-c55e9318871cd06e4aa10f5023cc2dcdfbb08577.tar.xz
misc: ibmvsm: Fix wrong assignment of return code
Currently the assignment is flipped and rc is always 0. Signed-off-by: Bryant G. Ly <bryantly@linux.ibm.com> Fixes: 0eca353e7ae7 ("misc: IBM Virtual Management Channel Driver (VMC)") Reviewed-by: Bradley Warrum <bwarrum@us.ibm.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/ibmvmc.c')
-rw-r--r--drivers/misc/ibmvmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/ibmvmc.c b/drivers/misc/ibmvmc.c
index 8f82bb9d11e2..b8aaa684c397 100644
--- a/drivers/misc/ibmvmc.c
+++ b/drivers/misc/ibmvmc.c
@@ -2131,7 +2131,7 @@ static int ibmvmc_init_crq_queue(struct crq_server_adapter *adapter)
retrc = plpar_hcall_norets(H_REG_CRQ,
vdev->unit_address,
queue->msg_token, PAGE_SIZE);
- retrc = rc;
+ rc = retrc;
if (rc == H_RESOURCE)
rc = ibmvmc_reset_crq_queue(adapter);