From: Wei Yongjun <weiyongjun1@xxxxxxxxxx> Date: Thu, 31 May 2018 02:31:22 +0000 > 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@xxxxxxxxxx> Although the TCP code should be checking this in the previous lines, it's not good practice to depend so tightly upon that. And it makes this code easier to audit if the check exists here explicitly too. So I'll apply this, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-s390" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html