i40e: Fix a bug where a client close can be called before an open is complete
authorAnjali Singhai Jain <anjali.singhai@intel.com>
Wed, 27 Jul 2016 19:02:30 +0000 (12:02 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 18 Aug 2016 18:43:10 +0000 (11:43 -0700)
commit3a0f52928a0a06a7c4c735cd325ca646a1e40fae
tree1205bad53950779dc5c3140dfd26cf1a1859df4e
parenteb27163b2e0a2606a044dfdf662ff1c26a63515c
i40e: Fix a bug where a client close can be called before an open is complete

The client->open call in this path was not protected with the
client instance mutex, and hence the client->close can get initiated
before the open completes.

Change-Id: I0ed60c38868dd3f44966b6ed49a063d0e5b7edf5
Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_client.c