Searched hist:"9 c706a49d660653625d206f6972541c1f60ea2b0" (Results 1 – 1 of 1) sorted by relevance
/linux/net/ipv4/ |
H A D | ipconfig.c | diff 9c706a49d660653625d206f6972541c1f60ea2b0 Wed Aug 10 11:44:17 CEST 2016 Uwe Kleine-König <u.kleine-koenig@pengutronix.de> net: ipconfig: fix use after free
ic_close_devs() calls kfree() for all devices's ic_device. Since commit 2647cffb2bc6 ("net: ipconfig: Support using "delayed" DHCP replies") the active device's ic_device is still used however to print the ipconfig summary which results in an oops if the memory is already changed. So delay freeing until after the autoconfig results are reported.
Fixes: 2647cffb2bc6 ("net: ipconfig: Support using "delayed" DHCP replies") Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: David S. Miller <davem@davemloft.net>
|