projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4a741a
)
KVM: PPC: Book 3S: Fix error return in kvm_vm_ioctl_create_spapr_tce()
author
Wei Yongjun
<weiyongjun1@huawei.com>
Wed, 8 Feb 2017 16:20:01 +0000
(16:20 +0000)
committer
Paul Mackerras
<paulus@ozlabs.org>
Thu, 9 Feb 2017 11:06:28 +0000
(22:06 +1100)
Fix to return error code -ENOMEM from the memory alloc error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_64_vio.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kvm/book3s_64_vio.c
b/arch/powerpc/kvm/book3s_64_vio.c
index
c379ff5
..
491c5d8
100644
(file)
--- a/
arch/powerpc/kvm/book3s_64_vio.c
+++ b/
arch/powerpc/kvm/book3s_64_vio.c
@@
-171,6
+171,7
@@
long kvm_vm_ioctl_create_spapr_tce(struct kvm *kvm,
goto fail;
}
+ ret = -ENOMEM;
stt = kzalloc(sizeof(*stt) + npages * sizeof(struct page *),
GFP_KERNEL);
if (!stt)