i40e: Fix client interaction
authorCarolyn Wyborny <carolyn.wyborny@intel.com>
Wed, 14 Sep 2016 23:24:31 +0000 (16:24 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 29 Oct 2016 06:28:39 +0000 (23:28 -0700)
commitc73d2e8462d0bb1d47b0e8f6a33d97ab9a154824
tree5f43aa7e6ee930d98d9791aac269667d5131d1b1
parentb09edbd07f876c9f7046c4aae1831e58919cffea
i40e: Fix client interaction

This patch fixes a problem in the client interface that
was causing random stack traces in RDMA driver load and
unload tests.  This patch fixes the problem by checking
for an existing client before trying to open it.  Without
this patch, there is a timing related null pointer deref.

Change-ID: Ib73d30671a27f6f9770dd53b3e5292b88d6b62da
Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_client.c