Commit e14f480d authored by Dan Carpenter's avatar Dan Carpenter Committed by Michael S. Tsirkin

vdpa/octeon_ep: Fix error code in octep_process_mbox()

Return -EINVAL for invalid signatures.  Don't return success.

Fixes: 8b6c724c ("virtio: vdpa: vDPA driver for Marvell OCTEON DPU devices")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Message-Id: <623e885b-1a05-479e-ab97-01bcf10bf5b8@stanley.mountain>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 69eced9e
......@@ -140,7 +140,7 @@ static int octep_process_mbox(struct octep_hw *oct_hw, u16 id, u16 qid, void *bu
val = octep_read_sig(mbox);
if ((val & 0xFFFF) != MBOX_RSP_SIG) {
dev_warn(&pdev->dev, "Invalid Signature from mbox : %d response\n", id);
return ret;
return -EINVAL;
}
val = octep_read_sts(mbox);
......
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