[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5512a79e-2c49-5360-274d-24c509ecd751@gmail.com>
Date: Mon, 5 Nov 2018 18:24:08 -0800
From: Florian Fainelli <f.fainelli@...il.com>
To: Andrew Lunn <andrew@...n.ch>,
Holger Hoffstätte <holger@...lied-asynchrony.com>
Cc: Netdev <netdev@...r.kernel.org>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [PATCH] net: phy: realtek: fix RTL8201F sysfs name
On 11/4/2018 10:43 AM, Andrew Lunn wrote:
> On Sun, Nov 04, 2018 at 07:02:42PM +0100, Holger Hoffstätte wrote:
>> Since 4.19 the following error in sysfs has appeared when using the
>> r8169 NIC driver:
>>
>> $cd /sys/module/realtek/drivers
>> $ls -l
>> ls: cannot access 'mdio_bus:RTL8201F 10/100Mbps Ethernet': No such file or directory
>> [..garbled dir entries follow..]
>>
>> Apparently the forward slash in "10/100Mbps Ethernet" is interpreted
>> as directory separator that leads nowhere, and was introduced in commit
>> 513588dd44b ("net: phy: realtek: add RTL8201F phy-id and functions").
>>
>> Fix this by removing the offending slash in the driver name.
>>
>> Other drivers in net/phy seem to have the same problem, but I cannot
>> test/verify them.
>>
>> Signed-off-by: Holger Hoffstätte <holger@...lied-asynchrony.com>
>
> Fixes:513588dd44b ("net: phy: realtek: add RTL8201F phy-id and functions").
>
> Reviewed-by: Andrew Lunn <andrew@...n.ch>
>
> David, please apply to net.
We should probably seek a more generic solution within sysfs to deny
specific problematic characters from being used, such as ., .., / etc.
--
Florian
Powered by blists - more mailing lists