Skip to content
Commit d8a4ea35 authored by Colin Ian King's avatar Colin Ian King Committed by Jakub Kicinski
Browse files

octeontx2-af: Fix undetected unmap PF error check

Currently the check for an unmap PF error is always going to be false
because intr_val is a 32 bit int and is being bit-mask checked against
1ULL << 32.  Fix this by making intr_val a u64 to match the type at it
is copied from, namely npa_event_context->npa_af_rvu_ge.

Addresses-Coverity: ("Operands don't affect result")
Fixes: f1168d1e

 ("octeontx2-af: Add devlink health reporters for NPA")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarGeorge Cherian <george.cherian@marvell.com>
Link: https://lore.kernel.org/r/20201216123604.15369-1-colin.king@canonical.com
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 38ba95a4
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