Commit 85040bcb authored by Committed by David S. Miller
[IPV6] ADDRLABEL: Fix double free on label deletion.
If an entry is being deleted because it has only one reference, we immediately delete it and blindly register the rcu handler for it, This results in oops by double freeing that object. This patch fixes it by consolidating the code paths for the deletion; let its rcu handler delete the object if it has no more reference. Bug was found by Mitsuru Chinen <email@example.com> Signed-off-by: YOSHIFUJI Hideaki <firstname.lastname@example.org> Signed-off-by: David S. Miller <email@example.com>
Showing with 6 additions and 8 deletions