]> www.infradead.org Git - users/jedix/linux-maple.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)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:41:22 +0000 (19:41 -0500)
commit0cf57fed2282829713ebf89eac50db7fcb79f5ae
tree3aae90e1d1916087c17a6613b70ee970aa6bdc6f
parent55a1b6050f403c0b325c637c6ae96f538c88d837
i40evf: protect against NULL msix_entries and q_vectors pointers

Orabug: 24568124

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>
(cherry picked from commit ef4603e82f64605e73495c26050f3f236609d991)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c