i40iw: Fix potential fcn_id_array out of bounds
authorChristopher N Bednarz <christopher.n.bednarz@intel.com>
Wed, 9 Aug 2017 01:38:48 +0000 (20:38 -0500)
committerDoug Ledford <dledford@redhat.com>
Wed, 16 Aug 2017 15:27:44 +0000 (11:27 -0400)
commitaa939c12ab8a0c094420ad1b909a957ac590e43e
tree4d25488be5d3e1f41da77144adea0d379c0d8a6a
parenta28f047e5f9b987d614eeee34388087ffdda3e53
i40iw: Fix potential fcn_id_array out of bounds

Avoid out of bounds error by utilizing I40IW_MAX_STATS_COUNT
instead of I40IW_INVALID_FCN_ID.

Signed-off-by: Christopher N Bednarz <christoper.n.bednarz@intel.com>
Signed-off-by: Henry Orosco <henry.orosco@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_ctrl.c