net/ice/base: fix overrun
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 29 Aug 2019 02:36:15 +0000 (10:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:53 +0000 (15:00 +0200)
commit07c417e5fc24ee6cafc066df782a34b7ed62478d
tree1fb39b369f774c6d90002e778a06c9ef1a5e87f7
parent807331f3efdafa925bc0f2510cebc9f2ea87e829
net/ice/base: fix overrun

Added boundary check for layer_num in function ice_sched_rm_rl_profile,
and ice_sched_add_rl_profile.

Cc: stable@dpdk.org
Tarun Singh <tarun.k.singh@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/base/ice_sched.c