mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
da4ed55165
The problem is that fib_info->nh is [0] so the struct fib_info
allocation size depends on number of nexthops. If we just copy fib_info,
we do not copy the nexthops info and driver accesses memory which is not
ours.
Given the fact that fib4 does not defer operations and therefore it does
not need copy, just pass the pointer down to drivers as it was done
before.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
switchdev.c |