mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
octeontx2-af: fix error code in is_valid_offset()
[ Upstream commitf3d671c711
] The is_valid_offset() function returns success/true if the call to validate_and_get_cpt_blkaddr() fails. Fixes:ecad2ce8c4
("octeontx2-af: cn10k: Add mailbox to configure reassembly timeout") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/YpXDrTPb8qV01JSP@kili Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
9ec85a2649
commit
5f8a1b5167
1 changed files with 1 additions and 1 deletions
|
@ -579,7 +579,7 @@ static bool is_valid_offset(struct rvu *rvu, struct cpt_rd_wr_reg_msg *req)
|
|||
|
||||
blkaddr = validate_and_get_cpt_blkaddr(req->blkaddr);
|
||||
if (blkaddr < 0)
|
||||
return blkaddr;
|
||||
return false;
|
||||
|
||||
/* Registers that can be accessed from PF/VF */
|
||||
if ((offset & 0xFF000) == CPT_AF_LFX_CTL(0) ||
|
||||
|
|
Loading…
Reference in a new issue