]> git.proxmox.com Git - mirror_ovs.git/commit - lib/netdev-offload-tc.c
netdev-offload-tc: Fix crash if offloading is not configured on outdev.
authorIlya Maximets <i.maximets@ovn.org>
Tue, 14 Jan 2020 20:18:14 +0000 (21:18 +0100)
committerIlya Maximets <i.maximets@ovn.org>
Wed, 15 Jan 2020 12:57:00 +0000 (13:57 +0100)
commit695e3509198222c4af43e4c21d1dda905169363f
treebfd9a5bb2a0538d900db37b99b652738232a7800
parentb9b7b989d105dc42514afafeff6341f3a04e398c
netdev-offload-tc: Fix crash if offloading is not configured on outdev.

If output device is not yet added to netdev-offload, netdev_ports_get()
will not find it leading to NULL pointer dereference inside
netdev_get_ifindex().

Fixes: 8f283af89298 ("netdev-tc-offloads: Implement netdev flow put using tc interface")
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
lib/netdev-offload-tc.c