]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/ipv5/tcp: Use vma_lookup() in tcp_zerocopy_receive()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 8 Apr 2021 17:16:07 +0000 (13:16 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 10 May 2021 16:39:27 +0000 (12:39 -0400)
commit7101049c90a4235ce9e7d1911e551b451ac406cc
treecfb108349343acba7b123784af7affa24aab833b
parentae188e0c23fd26d579904624fd9672e7885cc1ce
net/ipv5/tcp: Use vma_lookup() in tcp_zerocopy_receive()

Use vma_lookup() to find the VMA at a specific address.  As vma_lookup()
will return NULL if the address is not within any VMA, the start address
no longer needs to be validated.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
net/ipv4/tcp.c