]> Git Repo - linux.git/commit
net: qca_spi: Fix possible race during probe
authorStefan Wahren <[email protected]>
Sat, 9 May 2015 07:58:09 +0000 (07:58 +0000)
committerDavid S. Miller <[email protected]>
Mon, 11 May 2015 15:01:20 +0000 (11:01 -0400)
commit268be0f7a7d9b3644bcb99568efba13cb208b627
tree831fbcf9535f2394b7f66c8ffb2a7a7a672bf9d1
parent7c0c82682873354490a5b67c77331bd65a356236
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 <[email protected]>
Cc: <[email protected]> # v3.18+
Fixes: 291ab06e (net: qualcomm: new Ethernet over SPI driver for QCA7000)
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/qualcomm/qca_spi.c
This page took 0.053579 seconds and 4 git commands to generate.