提交 c55e9318 编写于 作者: B Bryant G. Ly 提交者: Greg Kroah-Hartman

misc: ibmvsm: Fix wrong assignment of return code

Currently the assignment is flipped and rc is always 0.
Signed-off-by: NBryant G. Ly <bryantly@linux.ibm.com>
Fixes: 0eca353e ("misc: IBM Virtual Management Channel Driver (VMC)")
Reviewed-by: NBradley Warrum <bwarrum@us.ibm.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册