diff options
author | Antonio Quartulli <antonio@meshcoding.com> | 2015-08-04 22:26:19 +0200 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2015-08-27 20:15:33 +0200 |
commit | a5256f7e74d85d7ae60ac3bd557d5fe3444be810 (patch) | |
tree | b85fb2810f6855173f81868d768d1ba91a0c8bc1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 07c48eca1661decbd52393ef535f0c97e5313c4e (diff) |
batman-adv: don't access unregistered net_device object
In batadv_hardif_disable_interface() there is a call to
batadv_softif_destroy_sysfs() which in turns invokes
unregister_netdevice() on the soft_iface.
After this point we cannot rely on the soft_iface object
anymore because it might get free'd by the netdev periodic
routine at any time.
For this reason the netdev_upper_dev_unlink(.., soft_iface) call
is moved before the invocation of batadv_softif_destroy_sysfs() so
that we can be sure that the soft_iface object is still valid.
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions