interface: fix regression on adding hotplug devices to interfaces
authorFelix Fietkau <nbd@nbd.name>
Sat, 21 Sep 2024 16:26:50 +0000 (18:26 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 21 Sep 2024 16:26:51 +0000 (18:26 +0200)
commit24f9a93a9559c93cf1e794fdfcd87a38d27a8e0e
tree25001e49b4a1707e177d891818822ccf2d270c75
parent02aa43d82d587d87523231be5a5e0bf956435725
interface: fix regression on adding hotplug devices to interfaces

Adding the same device to an interface again led to a call chain that ended
up removing the device again through device callbacks.
Fix this by only toggling the interface available status when the device is
still the same.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
interface.c