summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/locks.h
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2021-05-06 16:15:42 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2021-05-07 06:06:22 -0400
commit368340a3c7d9a207bfe544721d464b7109be8eae (patch)
tree70d1e75f0f38fdda0b6109fae55dd92600e62364 /fs/ocfs2/locks.h
parent258785ef08b323bddd844b4926a32c2b2045a1b0 (diff)
downloadlinux-368340a3c7d9a207bfe544721d464b7109be8eae.tar.bz2
KVM: SVM: Invert user pointer casting in SEV {en,de}crypt helpers
Invert the user pointer params for SEV's helpers for encrypting and decrypting guest memory so that they take a pointer and cast to an unsigned long as necessary, as opposed to doing the opposite. Tagging a non-pointer as __user is confusing and weird since a cast of some form needs to occur to actually access the user data. This also fixes Sparse warnings triggered by directly consuming the unsigned longs, which are "noderef" due to the __user tag. Cc: Brijesh Singh <brijesh.singh@amd.com> Cc: Tom Lendacky <thomas.lendacky@amd.com> Cc: Ashish Kalra <ashish.kalra@amd.com> Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20210506231542.2331138-1-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'fs/ocfs2/locks.h')
0 files changed, 0 insertions, 0 deletions