Commit c55e9318 authored by Bryant G. Ly's avatar Bryant G. Ly Committed by Greg Kroah-Hartman

misc: ibmvsm: Fix wrong assignment of return code

Currently the assignment is flipped and rc is always 0.
Signed-off-by: default avatarBryant G. Ly <bryantly@linux.ibm.com>
Fixes: 0eca353e ("misc: IBM Virtual Management Channel Driver (VMC)")
Reviewed-by: default avatarBradley Warrum <bwarrum@us.ibm.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent da1b9564
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment