Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1737894 > unrolled thread
| Started by | kbuild test robot <lkp@intel.com> |
|---|---|
| First post | 2017-09-23 00:20 +0200 |
| Last post | 2017-09-23 00:20 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH] KVM: SVM: fix eno.cocci warnings kbuild test robot <lkp@intel.com> - 2017-09-23 00:20 +0200
| From | kbuild test robot <lkp@intel.com> |
|---|---|
| Date | 2017-09-23 00:20 +0200 |
| Subject | [PATCH] KVM: SVM: fix eno.cocci warnings |
| Message-ID | <usEsF-3gv-1@gated-at.bofh.it> |
arch/x86/kvm/svm.c:5728:5-11: ERROR: allocation function on line 5727 returns NULL not ERR_PTR on failure
The various basic memory allocation functions don't return ERR_PTR
Generated by: scripts/coccinelle/null/eno.cocci
Fixes: 16e737dd7c3c ("KVM: SVM: Add support for SEV LAUNCH_START command")
CC: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
svm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -5725,7 +5725,7 @@ static void *copy_user_blob(u64 __user u
return ERR_PTR(-EINVAL);
data = kmalloc(len, GFP_KERNEL);
- if (IS_ERR(data))
+ if (!data)
return ERR_PTR(-ENOMEM);
if (copy_from_user(data, (void __user *)(uintptr_t)uaddr, len))
Back to top | Article view | linux.kernel
csiph-web