mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
vdpa/octeon_ep: Fix error code in octep_process_mbox()
Return -EINVAL for invalid signatures. Don't return success.
Fixes: 8b6c724cda
("virtio: vdpa: vDPA driver for Marvell OCTEON DPU devices")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Message-Id: <623e885b-1a05-479e-ab97-01bcf10bf5b8@stanley.mountain>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
69eced9eb4
commit
e14f480df7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user