Commit 40493bc9 authored by Quentin Perret's avatar Quentin Perret
Browse files

ANDROID: KVM: arm64: Check pin_user_pages() return value



Let's check the return value of pin_user_pages() before blindly
dereferencing the struct page pointer as it may very well be NULL.

Bug: 223678931
Reported-by: default avatarKeir Fraser <keirf@google.com>
Signed-off-by: default avatarQuentin Perret <qperret@google.com>
Change-Id: I49eb0eb14b88429cfeed3e7cc8a2a72404cfea97
parent dbba49b6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment