mbox series

[net,0/2] net: phy: fix locking issue

Message ID 2a39271d-3b9e-e425-98b4-b2a24074e806@gmail.com
Headers show
Series net: phy: fix locking issue | expand

Message

Heiner Kallweit Feb. 13, 2019, 7:10 p.m. UTC
Russell pointed out that the locking used in phy_is_started() isn't
needed and misleading. This locking also contributes to a race fixed
with patch 2.

Heiner Kallweit (2):
  net: phy: don't use locking in phy_is_started
  net: phy: fix potential race in the phylib state machine

 drivers/net/phy/phy.c | 13 +++++++------
 include/linux/phy.h   | 15 +--------------
 2 files changed, 8 insertions(+), 20 deletions(-)

Comments

David Miller Feb. 14, 2019, 5:05 p.m. UTC | #1
From: Heiner Kallweit <hkallweit1@gmail.com>
Date: Wed, 13 Feb 2019 20:10:36 +0100

> Russell pointed out that the locking used in phy_is_started() isn't
> needed and misleading. This locking also contributes to a race fixed
> with patch 2.

Series applied and queued up for -stable, thanks.