zhhyu7 commented on code in PR #7378:
URL: https://github.com/apache/incubator-nuttx/pull/7378#discussion_r1001342005


##########
net/socket/setsockopt.c:
##########
@@ -82,7 +82,7 @@ static int psock_socketlevel_option(FAR struct socket *psock, 
int option,
 
   if (!value)
     {
-      return -EINVAL;
+      return -EFAULT;

Review Comment:
   
https://github.com/linux-test-project/ltp/blob/3e0e60074495e1c350b634848e5dd1f7993ec2ef/testcases/kernel/syscalls/setsockopt/setsockopt01.c#L39-L40



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to