]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:40:24 +0000 (16:40 -0700)
commit5e2a88cec6c0a2c4355c51d921de02bcbf3fac7a
treef9bb7b97ad444e7d4ac6a5453506d3fa0c529d2b
parentb5b8d589d58fdba63d00f5f5a166386222a8c51e
ixgbe: Return error on failure to allocate mac_table

Orabug: 23177316

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>
(cherry picked from commit 530fd82a9fea5bba8e044bdf6fdf2ddc495e3807)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c