]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Initialize pointer in client_release function
authorHarshitha Ramamurthy <harshitha.ramamurthy@intel.com>
Mon, 15 Aug 2016 21:17:19 +0000 (14:17 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 20 Aug 2016 04:38:00 +0000 (21:38 -0700)
commitd4a236e271b2394a440546716eebd6735072a766
treea82b907f1ea14c9b53137971e6e05fdeef4ebe23
parent939375fd4aa7bd47668803abee5bdc59ff1a01ed
i40e: Initialize pointer in client_release function

The function i40e_client_release has a print statement that uses an
adapter pointer which is not initialized if a previous if statement
is not true. Hence, intialize it in the right place.

Change-ID: I1afdaa2c46771ac42be56edcc41bb56b455b06c8
Signed-off-by: Harshitha Ramamurthy <harshitha.ramamurthy@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