ibmvnic: Initialize completion variables before starting work
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Fri, 10 Feb 2017 18:45:05 +0000 (13:45 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 Feb 2017 02:23:43 +0000 (21:23 -0500)
commitdb5d0b597bc27bbddf40f2f8359a73be4eb77104
tree578d1706d2840edf029a5cd8119f8d3ba175ee69
parent1ee18329fae936089c6c599250ae92482ff2b81f
ibmvnic: Initialize completion variables before starting work

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>
drivers/net/ethernet/ibm/ibmvnic.c