caif-hsi: Fixing a race condition in the caif_hsi code
authorDmitry Tarnyagin <dmitry.tarnyagin@stericsson.com>
Thu, 13 Oct 2011 11:29:23 +0000 (11:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2011 07:25:41 +0000 (03:25 -0400)
commitfe47f1250805438fa06580c9ce6d37bc4bc595d2
tree1e5b35b1e1c6fedad2c9d2eb3ec51b0e10941866
parent94230febe47f82331f9493c4fd61085e2a6bf756
caif-hsi: Fixing a race condition in the caif_hsi code

cfhsi->tx_state was not protected by a spin lock. TX soft-irq could interrupt
cfhsi_tx_done_work work leading to inconsistent state of the driver.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/caif/caif_hsi.c