net/ice/base: improve switch chained recipe
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 29 Aug 2019 02:36:33 +0000 (10:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:53 +0000 (15:00 +0200)
commiteda40e22b8580c3a292065163f4772a359c2d64b
tree108b6eac97ca3d47882bfa1af3cf552f01ef4503
parent8b6e6e4024ae5c1fc11f9dfdaa8848b4583ff03f
net/ice/base: improve switch chained recipe

When updating switch database with chained recipes from
firmware, where a null pointer derefence was occurring due to looking
into a sub-recipe entry which is not filled in.

Signed-off-by: Dan Nowlin <dan.nowlin@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_protocol_type.h
drivers/net/ice/base/ice_switch.c