diff options
Diffstat (limited to 'net/rxrpc/ar-output.c')
-rw-r--r-- | net/rxrpc/ar-output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/ar-output.c b/net/rxrpc/ar-output.c index 86e0f10aa2c0..e1a9373e5979 100644 --- a/net/rxrpc/ar-output.c +++ b/net/rxrpc/ar-output.c | |||
@@ -45,7 +45,7 @@ static int rxrpc_sendmsg_cmsg(struct rxrpc_sock *rx, struct msghdr *msg, | |||
45 | if (msg->msg_controllen == 0) | 45 | if (msg->msg_controllen == 0) |
46 | return -EINVAL; | 46 | return -EINVAL; |
47 | 47 | ||
48 | for (cmsg = CMSG_FIRSTHDR(msg); cmsg; cmsg = CMSG_NXTHDR(msg, cmsg)) { | 48 | for_each_cmsghdr(cmsg, msg) { |
49 | if (!CMSG_OK(msg, cmsg)) | 49 | if (!CMSG_OK(msg, cmsg)) |
50 | return -EINVAL; | 50 | return -EINVAL; |
51 | 51 | ||