Re: [PATCH] net: ipconfig: Fix more use after free

2016-08-17 Thread David Miller
From: Thierry Reding Date: Tue, 16 Aug 2016 16:45:38 +0200 > From: Thierry Reding > > While commit 9c706a49d660 ("net: ipconfig: fix use after free") avoids > the use after free, the resulting code still ends up calling both the > ic_setup_if() and ic_setup_routes() after calling ic_close_devs(

[PATCH] net: ipconfig: Fix more use after free

2016-08-16 Thread Thierry Reding
From: Thierry Reding While commit 9c706a49d660 ("net: ipconfig: fix use after free") avoids the use after free, the resulting code still ends up calling both the ic_setup_if() and ic_setup_routes() after calling ic_close_devs(), and access to the device is still required. Move the call to ic_clo