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)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:57:28 +0000 (02:57 +0000)
commitc5ecc7fe8ad75c24912d841d050def468cc8a1ae
tree49ff815c222452d97d5545ea9ec6f2f1bddce263
parent8d3669aecd1443c17fd8e91c6d2e3c8af577781b
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