mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ipmr/ip6mr: Initialize the last assert time of mfc entries.
This fixes wrong-interface signaling on 32-bit platforms for entries created when jiffies > 2^31 + MFC_ASSERT_THRESH. Signed-off-by: Tom Goff <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
4192f672fa
commit
70a0dec451
2 changed files with 4 additions and 1 deletions
|
|
@ -891,8 +891,10 @@ static struct mfc_cache *ipmr_cache_alloc(void)
|
|||
{
|
||||
struct mfc_cache *c = kmem_cache_zalloc(mrt_cachep, GFP_KERNEL);
|
||||
|
||||
if (c)
|
||||
if (c) {
|
||||
c->mfc_un.res.last_assert = jiffies - MFC_ASSERT_THRESH - 1;
|
||||
c->mfc_un.res.minvif = MAXVIFS;
|
||||
}
|
||||
return c;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue