OSDN Git Service

batman-adv: Fix genl notification for throughput_override
authorSven Eckelmann <sven@narfation.org>
Sun, 3 Mar 2019 18:25:26 +0000 (19:25 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Mon, 25 Mar 2019 08:31:19 +0000 (09:31 +0100)
commit438b3d3fae4346a49fe12fa7cc1dc9327f006a91
tree54eb7f7a5b14b3c97fd00a493f85ec4a13675dd8
parentca8c3b922e7032aff6cc3fd05548f4df1f3df90e
batman-adv: Fix genl notification for throughput_override

The throughput_override sysfs file is not below the meshif but below a
hardif. The kobj has therefore not a pointer which can be used to find the
batadv_priv data. The pointer stored in the hardif object must be used
instead to find the correct meshif private data.

Fixes: 7e6f461efe25 ("batman-adv: Trigger genl notification on sysfs config change")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/sysfs.c