]> git.baikalelectronics.ru Git - kernel.git/commit
net: qca_spi: Fix possible race during probe
authorStefan Wahren <stefan.wahren@i2se.com>
Sat, 9 May 2015 07:58:09 +0000 (07:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 May 2015 15:01:20 +0000 (11:01 -0400)
commit70ed50b9293909dff6fa10039b730323dac903f3
tree831fbcf9535f2394b7f66c8ffb2a7a7a672bf9d1
parent543c83b630dde30639462098592c97622bdc2229
net: qca_spi: Fix possible race during probe

Registering the netdev before setting the priv data is unsafe.
So fix this possible race by setting the priv data first.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Cc: <stable@vger.kernel.org> # v3.18+
Fixes: a93f2da6 (net: qualcomm: new Ethernet over SPI driver for QCA7000)
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/qca_spi.c