]> git.baikalelectronics.ru Git - kernel.git/commit
dlm: use the tcp version of accept_from_sock for sctp as well
authorChristoph Hellwig <hch@lst.de>
Wed, 27 May 2020 18:22:28 +0000 (20:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 22:11:33 +0000 (15:11 -0700)
commit19235dea1ef80324bd11a6aace08ecbc72bb93e1
tree1068537c5954eb53f586a30b0d8b7ffacb785d31
parent44a92367e9ed282ad14b7af2f9ef2306854df754
dlm: use the tcp version of accept_from_sock for sctp as well

The only difference between a few missing fixes applied to the SCTP
one is that TCP uses ->getpeername to get the remote address, while
SCTP uses kernel_getsockopt(.. SCTP_PRIMARY_ADDR).  But given that
getpeername is defined to return the primary address for sctp, there
doesn't seem to be any reason for the different way of quering the
peername, or all the code duplication.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/dlm/lowcomms.c