mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 03:59:40 +02:00
octeontx2-af: Fix error code in rvu_mbox_init()
The error code was intended to be -EINVAL here, but it was accidentally
changed to returning success. Set the error code.
Fixes: e53ee4acb2 ("octeontx2-af: CN20k basic mbox operations and structures")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
beead7eea8
commit
20a0c20f82
|
|
@ -2458,9 +2458,9 @@ static int rvu_mbox_init(struct rvu *rvu, struct mbox_wq_info *mw,
|
|||
void (mbox_handler)(struct work_struct *),
|
||||
void (mbox_up_handler)(struct work_struct *))
|
||||
{
|
||||
int err = -EINVAL, i, dir, dir_up;
|
||||
void __iomem **mbox_regions;
|
||||
struct ng_rvu *ng_rvu_mbox;
|
||||
int err, i, dir, dir_up;
|
||||
void __iomem *reg_base;
|
||||
struct rvu_work *mwork;
|
||||
unsigned long *pf_bmap;
|
||||
|
|
@ -2526,6 +2526,7 @@ static int rvu_mbox_init(struct rvu *rvu, struct mbox_wq_info *mw,
|
|||
goto free_regions;
|
||||
break;
|
||||
default:
|
||||
err = -EINVAL;
|
||||
goto free_regions;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user