netifd: Mark interface as dynamic after it has been added in the interface list
authorHans Dedecker <dedeckeh@gmail.com>
Thu, 24 Apr 2014 07:51:15 +0000 (07:51 +0000)
committerSteven Barth <steven@midlink.org>
Thu, 24 Apr 2014 09:13:26 +0000 (11:13 +0200)
commit372fa0f3f867eee4b949727aa5c2e4fa9e728d55
tree51be50d08bf836db2151d6b3b8a2e887c98aabab
parent235a02424c3ab1b59308895c4f00395dacf2557c
netifd: Mark interface as dynamic after it has been added in the interface list

Adding an interface in the interface list in case of a config update will override the node version of the old interface and thus overriding the dynamic interface marker.
In case of config update interface_set_dynamic is done on an invalid interface pointer as the new interface pointer has been freed.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
ubus.c