summaryrefslogtreecommitdiff
path: root/drivers/net/usb/asix_common.c
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2016-05-17 19:58:08 +0300
committerDavid S. Miller <davem@davemloft.net>2016-05-17 20:58:49 +0300
commitda4ed55165d41b1073f9a476f1c18493e9bf8c8e (patch)
tree0971053bdbdb27fe6d0f9e801411ae94f0a8974d /drivers/net/usb/asix_common.c
parentdc327f8931cb9d66191f489eb9a852fc04530546 (diff)
downloadlinux-da4ed55165d41b1073f9a476f1c18493e9bf8c8e.tar.xz
switchdev: pass pointer to fib_info instead of copy
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: 850d0cbc91 ("switchdev: remove pointers from switchdev objects") Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/asix_common.c')
0 files changed, 0 insertions, 0 deletions