]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/tls: Fix return values to avoid ENOTSUPP
authorValentin Vidic <vvidic@valentin-vidic.from.hr>
Thu, 5 Dec 2019 06:41:18 +0000 (07:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Dec 2019 04:15:39 +0000 (20:15 -0800)
commit4a5cdc604b9cf645e6fa24d8d9f055955c3c8516
treefbf990cba5f852a84307f6cbbba7a4c08e344a5b
parent1af66221a66de080274540a5c481ddacbe3574d2
net/tls: Fix return values to avoid ENOTSUPP

ENOTSUPP is not available in userspace, for example:

  setsockopt failed, 524, Unknown error 524

Signed-off-by: Valentin Vidic <vvidic@valentin-vidic.from.hr>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_device.c
net/tls/tls_main.c
net/tls/tls_sw.c
tools/testing/selftests/net/tls.c