summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHariprasad Kelam <hariprasad.kelam@gmail.com>2019-04-06 15:06:58 +0530
committerPaolo Bonzini <pbonzini@redhat.com>2019-04-16 15:38:07 +0200
commitbe43c440eb5d0ccfdb0d67d5a4c9d579ff988b75 (patch)
treec70f5e544f6e12a7a7e628f0efec487bb1811aef
parent79904c9de0d1a6cd66853b3af802343b0ba3720c (diff)
downloadtalos-op-linux-be43c440eb5d0ccfdb0d67d5a4c9d579ff988b75.tar.gz
talos-op-linux-be43c440eb5d0ccfdb0d67d5a4c9d579ff988b75.zip
KVM: x86: fix warning Using plain integer as NULL pointer
Changed passing argument as "0 to NULL" which resolves below sparse warning arch/x86/kvm/x86.c:3096:61: warning: Using plain integer as NULL pointer Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index f10fef561573..a0d1fc80ac5a 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -3095,7 +3095,7 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
break;
case KVM_CAP_NESTED_STATE:
r = kvm_x86_ops->get_nested_state ?
- kvm_x86_ops->get_nested_state(NULL, 0, 0) : 0;
+ kvm_x86_ops->get_nested_state(NULL, NULL, 0) : 0;
break;
default:
break;
OpenPOWER on IntegriCloud