]> git.karo-electronics.de Git - linux-beck.git/commit
i40evf: protect against NULL msix_entries and q_vectors pointers
authorJacob Keller <jacob.e.keller@intel.com>
Tue, 8 Nov 2016 21:05:08 +0000 (13:05 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 3 Dec 2016 07:19:36 +0000 (23:19 -0800)
commitef4603e82f64605e73495c26050f3f236609d991
treeb62014c5f7715cadd93b35fbed748b2d10fcce12
parente586bb66b57c2a50d464d0f87cf8c7c9c3b36835
i40evf: protect against NULL msix_entries and q_vectors pointers

Update the functions which free msix_entries and q_vectors so that they
are safe against NULL values. This allows calling code to not care
whether these have already been freed when disabling and freeing them.

Change-ID: I31bfd1c0da18023d971b618edc6fb049721f3298
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c