]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: fix error code in is_valid_offset()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 31 May 2022 07:28:45 +0000 (10:28 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Wed, 1 Jun 2022 09:49:44 +0000 (11:49 +0200)
commit99a02b87f883989053fd0fec62eb947e91da19da
tree167850545115de075a30b4b1c3c95aea414ac228
parent6fa62fbd93c1032b032170bd1c0522768ae88395
octeontx2-af: fix error code in is_valid_offset()

The is_valid_offset() function returns success/true if the call to
validate_and_get_cpt_blkaddr() fails.

Fixes: b4a19f2d95b0 ("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>
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c