diff options
author | Xin Long <lucien.xin@gmail.com> | 2020-09-13 14:43:03 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-15 02:53:38 +0300 |
commit | 8e1b3ac4786680c2d2b5a24e38a2d714c3bcd1ef (patch) | |
tree | 14d2af7c1ff1a284ba31c3062f76e1ea1b57559f /net/x25 | |
parent | ad7b27c9e64afce4ad69020329a3e89f6df4f382 (diff) | |
download | linux-8e1b3ac4786680c2d2b5a24e38a2d714c3bcd1ef.tar.xz |
net: sched: initialize with 0 before setting erspan md->u
In fl_set_erspan_opt(), all bits of erspan md was set 1, as this
function is also used to set opt MASK. However, when setting for
md->u.index for opt VALUE, the rest bits of the union md->u will
be left 1. It would cause to fail the match of the whole md when
version is 1 and only index is set.
This patch is to fix by initializing with 0 before setting erspan
md->u.
Reported-by: Shuang Li <shuali@redhat.com>
Fixes: 79b1011cb33d ("net: sched: allow flower to match erspan options")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/x25')
0 files changed, 0 insertions, 0 deletions