]> 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)
commitf3d671c711097a133bc36bd2bde52f1fcca783a6
tree167850545115de075a30b4b1c3c95aea414ac228
parentc4caa500ffebf64795d1c0f6f9d6f179b502c6b7
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: ecad2ce8c48f ("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