Skip to content
Commit 869420a8 authored by Samuel Thibault's avatar Samuel Thibault Committed by Jakub Kicinski
Browse files

SO_ZEROCOPY should return -EOPNOTSUPP rather than -ENOTSUPP



ENOTSUPP is documented as "should never be seen by user programs",
and thus not exposed in <errno.h>, and thus applications cannot safely
check against it (they get "Unknown error 524" as strerror). We should
rather return the well-known -EOPNOTSUPP.

This is similar to 2230a7ef ("drop_monitor: Use correct error
code") and 4a5cdc60 ("net/tls: Fix return values to avoid
ENOTSUPP"), which did not seem to cause problems.

Signed-off-by: default avatarSamuel Thibault <samuel.thibault@labri.fr>
Acked-by: default avatarWillem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20220307223126.djzvg44v2o2jkjsx@begin


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 964efdab
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment