route: release dst_entry.hh_cache when handling redirects
authorMichal Kubecek <mkubecek@suse.cz>
Tue, 4 Dec 2012 10:09:13 +0000 (11:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Dec 2012 18:45:08 +0000 (10:45 -0800)
commitbc436ddffc68d8c9e3e2e69e3253445af85c0881
treef210b415797af8fd7d44ffae99e89354c48209c0
parente86b690c9659a03d8a6bb7ded18894718ab64360
route: release dst_entry.hh_cache when handling redirects

Stable-3.0 commit 42ab5316 (ipv4: fix redirect handling) was
backport of mainline commit 9cc20b26 from 3.2-rc3 where hh
member of struct dst_entry was already gone.

However, in 3.0 we still have it and we have to clean it as
well, otherwise it keeps pointing to the cleaned up (and
unusable) hh_cache entry and packets cannot be sent out.

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/route.c