]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/sgx: Use vma_lookup() in sgx_encl_find()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 8 Apr 2021 17:26:35 +0000 (13:26 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 10 May 2021 16:39:27 +0000 (12:39 -0400)
commit9d49cfd00958adab1f734addd0ae1c8ee8267f21
treee2868d3d6b9e6f68300e17d122d6765501cf5eba
parentb066b05a5f1d6ed52fce2dd608d40820fd8d4dff
x86/sgx: Use vma_lookup() in sgx_encl_find()

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>
arch/x86/kernel/cpu/sgx/encl.h