]> git.baikalelectronics.ru Git - kernel.git/commit
ice: fix memory allocation call
authorBruce Allan <bruce.w.allan@intel.com>
Fri, 26 Feb 2021 21:19:27 +0000 (13:19 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 29 Mar 2021 17:11:55 +0000 (10:11 -0700)
commitc0e6acdf5b6823106a82f47fd6bb2e04ae54bd21
tree28da7db5856a3a36f273a28389b160fbe649d88f
parentd53c8319036159d53dfbf640bf471a28caeb0ff7
ice: fix memory allocation call

Fix the order of number of array members and member size parameters in a
*calloc() call.

Fixes: 4dfc8c02e6da ("ice: avoid unnecessary single-member variable-length structs")
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_common.c