]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Return error on failure to allocate mac_table
authorAlexander Duyck <aduyck@mirantis.com>
Tue, 3 Nov 2015 01:09:29 +0000 (17:09 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 12 Dec 2015 08:44:18 +0000 (00:44 -0800)
commitee0ae426e618dbd0c29a484351152ce1567987d6
tree609976af73b62c4601792ddc1be5527646e3f6d6
parent44ce840a81bd9e7e7dc6a0247a8d08c52480df05
ixgbe: Return error on failure to allocate mac_table

Add a check to make certain mac_table was actually allocated and is not
NULL.  If it is NULL return -ENOMEM and allow the probe routine to fail
rather then causing a NULL pointer dereference further down the line.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c