mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
udev: fix for parsing MAC address
Fixes a bug introduced by 5bbcfbaa11a92732f9bbc8d5f77e9311e6ac3d56. Fixes #25181.
This commit is contained in:
parent
59ab79a73d
commit
269585dcc8
@ -1087,7 +1087,7 @@ static int get_link_info(sd_device *dev, LinkInfo *info) {
|
||||
r = sd_device_get_sysattr_value(dev, "address", &s);
|
||||
if (r < 0 && r != -ENOENT)
|
||||
return r;
|
||||
if (r > 0) {
|
||||
if (r >= 0) {
|
||||
r = parse_hw_addr(s, &info->hw_addr);
|
||||
if (r < 0)
|
||||
log_device_debug_errno(dev, r, "Failed to parse 'address' sysattr, ignoring: %m");
|
||||
|
Loading…
x
Reference in New Issue
Block a user