]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7e7aa51fee66610d7b9f6c5f57687cd46814c357
tree54eb7f7a5b14b3c97fd00a493f85ec4a13675dd8
parent855f449d31bec7b48bf4b00232019684faf35253
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: b16ecb61566d ("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