summaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorLeonardo Bras <leonardo@linux.ibm.com>2019-09-23 18:24:08 -0300
committerPaul Mackerras <paulus@ozlabs.org>2019-10-22 16:29:01 +1100
commitf41c4989c8de1fa70aafe950abaf80c56a8b8712 (patch)
treef6535e8d44d066062fb03495d7639c7ed100ffb4 /lib/test_overflow.c
parent258ed7d02843052d127df2264c8b342276ced18a (diff)
KVM: PPC: E500: Replace current->mm by kvm->mm
Given that in kvm_create_vm() there is: kvm->mm = current->mm; And that on every kvm_*_ioctl we have: if (kvm->mm != current->mm) return -EIO; I see no reason to keep using current->mm instead of kvm->mm. By doing so, we would reduce the use of 'global' variables on code, relying more in the contents of kvm struct. Signed-off-by: Leonardo Bras <leonardo@linux.ibm.com> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions