]> www.infradead.org Git - users/jedix/linux-maple.git/commit
af_unix: Use msg->{msg_name,msg_namelen} in unix_dgram_sendmsg().
authorKuniyuki Iwashima <kuniyu@amazon.com>
Fri, 13 Dec 2024 11:08:45 +0000 (20:08 +0900)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 17 Dec 2024 11:08:28 +0000 (12:08 +0100)
commit3c05329a2abe312ed85a60a325b930063f61e817
tree69c4c9e71f1f94b5b5aa3112f56da950d5e67056
parentf4dd63165b08ba3b72117973d5daea456f36377d
af_unix: Use msg->{msg_name,msg_namelen} in unix_dgram_sendmsg().

In unix_dgram_sendmsg(), we use a local variable sunaddr pointing
NULL or msg->msg_name based on msg->msg_namelen.

Let's remove sunaddr and simplify the usage.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/unix/af_unix.c