commit | 3dc9f558cdd2dfba06e021a6b85e990d1a0b2641 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <weiyongjun1@huawei.com> | Thu May 31 02:31:22 2018 +0000 |
committer | David S. Miller <davem@davemloft.net> | Sun Jun 03 10:38:28 2018 -0400 |
tree | a5c3ded4c7d0075eff575e51f1dfb42fd4ab7276 | |
parent | 8cb77149e8c8c8f6fef67ac2749868c563a449c6 [diff] |
net/smc: fix error return code in smc_setsockopt() Fix to return error code -EINVAL instead of 0 if optlen is invalid. Fixes: 01d2f7e2cdd3 ("net/smc: sockopts TCP_NODELAY and TCP_CORK") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>