]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
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 <stefan.wahren@i2se.com>
Cc: <stable@vger.kernel.org> # v3.18+
Fixes: 291ab06e (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