]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: don't allocate zero size
authorMitch Williams <mitch.a.williams@intel.com>
Thu, 28 Nov 2013 06:39:39 +0000 (06:39 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 6 Jan 2014 10:32:26 +0000 (02:32 -0800)
commit275416edfee7f0614e76696499424a34ae268dec
tree1abee371dd5ede7eadd93037168a14eb79a98967
parentf506c3686c9d353596ca3e22f1815109e09e3859
i40e: don't allocate zero size

Shockingly, the compiler didn't flag this uninitialized variable. This
fixes a potential memory corruption condition where ARQ messages are
written to random memory locations.

Change-Id: Iac82f4562d2bf3f42df3f3b2163d9cbed2160135
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c