]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: use a more sensible error number when debugfs directory creation fails
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 30 Oct 2013 11:12:13 +0000 (12:12 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 30 Oct 2013 11:15:34 +0000 (12:15 +0100)
commit0f753e4ab470c71143d39b9e505a217b607c94c4
tree5b93f4f81a51a1118ad271c8a94b414c3d6859d2
parentf9edc22c6b8847b6ccc86832ea0c9369eb4144b3
KVM: use a more sensible error number when debugfs directory creation fails

I don't know if this was due to cut and paste, or somebody was really
using a D20 to pick the error code for kvm_init_debugfs as suggested by
Linus (EFAULT is 14, so the possibility cannot be entirely ruled out).

In any case, this patch fixes it.

Reported-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c