ice: Fix for memory leaks and modify ICE_FREE_CQ_BUFS
authorSurabhi Boob <surabhi.boob@intel.com>
Sat, 16 May 2020 00:36:43 +0000 (17:36 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 28 May 2020 00:32:50 +0000 (17:32 -0700)
commit68d270783742783f96e89ef92ac24ab3c7fb1d31
tree8ad971f06c14e0b4d46a34bd1a70d44a88103933
parent1aaef2bc4e0a5ce9e4dd86359e6a0bf52c6aa64f
ice: Fix for memory leaks and modify ICE_FREE_CQ_BUFS

Handle memory leaks during control queue initialization and
buffer allocation failures. The macro ICE_FREE_CQ_BUFS is modified to
re-use for this fix.

Signed-off-by: Surabhi Boob <surabhi.boob@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_controlq.c