net/ice/base: check failed acts allocation
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 26 Aug 2020 12:43:40 +0000 (20:43 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:09 +0000 (18:55 +0200)
commitd58cc74ebd5723f07ada4722e6b82d8cbc0d9ee2
treeceb94e8c8ede52e9e7ac8b1d6666da45e458dd29
parent56ec90f1903df89d2a019b5c4c49cb8ddf2c3526
net/ice/base: check failed acts allocation

There is no check for failed allocation of 'acts'. Add a check and
return if memory was not successfully allocated. Also, as all 'goto out'
occur after this check there is no need to perform a check for 'acts' as
we will have returned if it is not set.

Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_flow.c