diff options
author | Vadim Fedorenko <vfedorenko@novek.ru> | 2021-07-20 23:35:28 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-21 08:49:31 -0700 |
commit | 9bfce73c8921c92a9565562e6e7d458d37b7ce80 (patch) | |
tree | 5590b051d5c00285ea9fd2ef4e2a976d47996124 /kernel/stop_machine.c | |
parent | 58acd10092268831e49de279446c314727101292 (diff) | |
download | linux-9bfce73c8921c92a9565562e6e7d458d37b7ce80.tar.bz2 |
udp: check encap socket in __udp_lib_err
Commit d26796ae5894 ("udp: check udp sock encap_type in __udp_lib_err")
added checks for encapsulated sockets but it broke cases when there is
no implementation of encap_err_lookup for encapsulation, i.e. ESP in
UDP encapsulation. Fix it by calling encap_err_lookup only if socket
implements this method otherwise treat it as legal socket.
Fixes: d26796ae5894 ("udp: check udp sock encap_type in __udp_lib_err")
Signed-off-by: Vadim Fedorenko <vfedorenko@novek.ru>
Reviewed-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/stop_machine.c')
0 files changed, 0 insertions, 0 deletions