]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4bbb79ae8c5e910081641f115b4eacc86f67174e
tree4d25488be5d3e1f41da77144adea0d379c0d8a6a
parent044cc91809f2368e2f84ff7a1e72f8556e80cb74
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