OSDN Git Service

ibmvnic: Initialize completion variables before starting work
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Wed, 24 May 2017 01:53:39 +0000 (21:53 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jun 2017 04:41:50 +0000 (06:41 +0200)
commitae0b63eb344efec8aab9759ec3fcc94c799227e1
tree2fb7303227ba137ecc82b44e3d2a2b23032f1c70
parent4544ba3173b7e4f15c8c921997847390e5652268
ibmvnic: Initialize completion variables before starting work

[ Upstream commit db5d0b597bc27bbddf40f2f8359a73be4eb77104 ]

Initialize condition variables prior to invoking any work that can
mark them complete. This resolves a race in the ibmvnic driver where
the driver faults trying to complete an uninitialized condition
variable.

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/ibm/ibmvnic.c