e9d5c5fb68
Existing field ID validity check does not validate the field descriptor availability. Make it more rigorous to avoid reading past the buffer containing field descriptors. Coverity issue: 363742 Fixes: 370ed675a952 ("common/sfc_efx/base: support setting PPORT in match spec") Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru> Reviewed-by: Andy Moreton <amoreton@xilinx.com>