net/bnxt: fix overrun of ULP device params array
authorKishore Padmanabha <kishore.padmanabha@broadcom.com>
Thu, 30 Apr 2020 21:42:12 +0000 (17:42 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 May 2020 20:27:39 +0000 (22:27 +0200)
commit45e5e9518c9bdbdaa8382fa7a8e559440e415f9b
treec6086e33a47ce98717b97681f0a06ef83850efdc
parentb62c5f0df54512d8fd93dd28a2b482b2d2bad540
net/bnxt: fix overrun of ULP device params array

Fix a buffer overrun issue spotted by coverity while accessing
the array ulp_device_params.
Note that the issue was observed in an internal Coverity scan.

Fixes: 313ac35ac701 ("net/bnxt: support ULP session manager init")

Signed-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>
Reviewed-by: Mike Baucom <michael.baucom@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/tf_ulp/ulp_template_db.c