From: Andrew Morton net/compat.c: In function 'scm_detach_fds_compat': net/compat.c:279: error: 'msg' undeclared (first use in this function) net/compat.c:279: error: (Each undeclared identifier is reported only once net/compat.c:279: error: for each function it appears in.) Cc: Ingo Molnar Cc: Michael Buesch Cc: Michael Kerrisk Cc: Ulrich Drepper Signed-off-by: Andrew Morton --- net/compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN net/compat.c~o_cloexec-for-scm_rights-fix-2 net/compat.c --- a/net/compat.c~o_cloexec-for-scm_rights-fix-2 +++ a/net/compat.c @@ -276,7 +276,7 @@ void scm_detach_fds_compat(struct msghdr err = security_file_receive(fp[i]); if (err) break; - err = get_unused_fd_flags(MSG_CMSG_CLOEXEC & msg->msg_flags + err = get_unused_fd_flags(MSG_CMSG_CLOEXEC & kmsg->msg_flags ? O_CLOEXEC : 0); if (err < 0) break; _