Skip to content

Commit e14f480

Browse files
Dan Carpentermstsirkin
authored andcommitted
vdpa/octeon_ep: Fix error code in octep_process_mbox()
Return -EINVAL for invalid signatures. Don't return success. Fixes: 8b6c724 ("virtio: vdpa: vDPA driver for Marvell OCTEON DPU devices") Signed-off-by: Dan Carpenter <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 69eced9 commit e14f480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vdpa/octeon_ep/octep_vdpa_hw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static int octep_process_mbox(struct octep_hw *oct_hw, u16 id, u16 qid, void *bu
140140
val = octep_read_sig(mbox);
141141
if ((val & 0xFFFF) != MBOX_RSP_SIG) {
142142
dev_warn(&pdev->dev, "Invalid Signature from mbox : %d response\n", id);
143-
return ret;
143+
return -EINVAL;
144144
}
145145

146146
val = octep_read_sts(mbox);

0 commit comments

Comments
 (0)