Skip to content
Commit e709acbd authored by Su Hui's avatar Su Hui Committed by Jakub Kicinski
Browse files

octeontx2-pf: check negative error code in otx2_open()

otx2_rxtx_enable() return negative error code such as -EIO,
check -EIO rather than EIO to fix this problem.

Fixes: c9262522

 ("octeontx2-pf: Disable packet I/O for graceful exit")
Signed-off-by: default avatarSu Hui <suhui@nfschina.com>
Reviewed-by: default avatarSubbaraya Sundeep <sbhatta@marvell.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Reviewed-by: default avatarKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Link: https://lore.kernel.org/r/20240328020620.4054692-1-suhui@nfschina.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 5086f0fe
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment