]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: fix a possible double free
authorRoy Li <rongqing.li@windriver.com>
Tue, 20 Sep 2011 19:10:16 +0000 (15:10 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Sep 2011 19:10:16 +0000 (15:10 -0400)
commit81f6053974be6c2798694da7f8344229b12cd0fe
tree38460cb5479a4df4d3c09626998c0294767583b7
parent1e86b40f20b616e642b007f16b385a9a6cd7ef46
ipv6: fix a possible double free

When calling snmp6_alloc_dev fails, the snmp6 relevant memory
are freed by snmp6_alloc_dev. Calling in6_dev_finish_destroy
will free these memory twice.

Double free will lead that undefined behavior occurs.

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c