]> git.baikalelectronics.ru Git - kernel.git/commit
ice: correct memory allocation call
authorBruce Allan <bruce.w.allan@intel.com>
Tue, 2 Mar 2021 18:12:10 +0000 (10:12 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 31 Mar 2021 21:21:28 +0000 (14:21 -0700)
commit52acfff87281c6763cc73c63262520f7748a5b8d
tree976530b537f672b800167163949c12433d01af6a
parent76e9909019c9d3275a8c4d8bce5cb4934a658be0
ice: correct memory allocation call

Use *malloc() instead of *calloc() when allocating only a single object as
opposed to an array of objects.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_switch.c