i40e: handle possible memory allocation failure
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Tue, 7 Apr 2015 23:45:39 +0000 (19:45 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 15 Apr 2015 03:32:47 +0000 (20:32 -0700)
commitc1147280d2a336ac6723a8dc8b74f809fd6db02c
tree56fd0a75dce6caae87f22c84329b5e7499562d6d
parent73b23402bb232ce655cf45aaca4f7feee317deb1
i40e: handle possible memory allocation failure

The init_interrupt_scheme function had a possible failure
path to allocate memory that was found by smatch.

This adds the correct handling to the function to abort
probe if the memory allocation fails.

Change-ID: I2bf1d826a244209619da4c452d0d58b3eb5e26a3
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c