net/qede/base: add a sanity check
authorRasesh Mody <rasesh.mody@cavium.com>
Tue, 19 Sep 2017 01:29:51 +0000 (18:29 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:48 +0000 (02:49 +0200)
commit5f88553bcda622b270ddf29230883e090f8512bc
tree2666e71eb8078fa1eebcfee845eb6b1edf225ae4
parent544927f9a43fe1318b7d347982050f2a6fe4692c
net/qede/base: add a sanity check

Add a sanity check that the offset being used to access the runtime array
is not greater/equal than/to RUNTIME_ARRAY_SIZE

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/ecore_init_ops.c