sock: Fix SO_ZEROCOPY switch case
authorJesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com>
Wed, 7 Mar 2018 17:40:57 +0000 (09:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Mar 2018 20:54:46 +0000 (15:54 -0500)
commit334e6413134bf8335ec93a9e60213cbc61ef7a62
tree25c4f939120aa1b81d8e544255d4e3f0c6b5e6bf
parent92dbb332a20959cde960a5acbacc0bbefdc07038
sock: Fix SO_ZEROCOPY switch case

Fix the SO_ZEROCOPY switch case on sock_setsockopt() avoiding the
ret values to be overwritten by the one set on the default case.

Fixes: 28190752c7092 ("sock: permit SO_ZEROCOPY on PF_RDS socket")
Signed-off-by: Jesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Acked-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c