Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86794180 authored by Will Deacon's avatar Will Deacon Committed by Alistair Delva
Browse files

UPSTREAM: arm64: mm: Really fix sparse warning in untagged_addr()



(Upstream commit 9c1cac424c93d2b3122014e07a54b003ddedc168).

untagged_addr() can be called with a '__user' pointer parameter and must
therefore use '__force' casts both when passing this parameter through
to sign_extend64() as a 'u64', but also when casting the 's64' return
value back to the '__user' pointer type.

Signed-off-by: default avatarWill Deacon <will@kernel.org>
Signed-off-by: default avatarAndrey Konovalov <andreyknvl@google.com>
Bug: 135692346
Change-Id: I8806aa6911cda3ab0489dff59b75ae214b02d48e
parent fc824688
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment