]> git.baikalelectronics.ru Git - kernel.git/commit
unix_bind(): allocate addr earlier
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 19 Jun 2021 03:50:27 +0000 (03:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jun 2021 19:28:49 +0000 (12:28 -0700)
commitb9e0f6be785ecd732b3f57f8319d0a0d82841c07
tree816f17e3db1a03d9322da1a9955f9b8752512006
parentc6aad331579a00244b9519e89b7d0a2836d83fe4
unix_bind(): allocate addr earlier

makes it easier to massage; we do pay for that by extra work
(kmalloc+memcpy+kfree) in some error cases, but those are not
on the hot paths anyway.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c