mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 21:50:17 +01:00
core: fix bridge port sysfs directory determination after f5507633 (platform: bridging and bonding options)
The device is not a slave if it *doesn't* have a master. Code previously returned an error if the slave did have a master, which is wrong.
This commit is contained in:
parent
d22f279f53
commit
1bf16b6f06
1 changed files with 1 additions and 1 deletions
|
|
@ -1879,7 +1879,7 @@ slave_category (NMPlatform *platform, int slave)
|
|||
{
|
||||
int master = link_get_master (platform, slave);
|
||||
|
||||
if (master) {
|
||||
if (master <= 0) {
|
||||
platform->error = NM_PLATFORM_ERROR_NOT_SLAVE;
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue