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)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:16 +0000 (17:18 +0200)
commite845f9d367f2ac8197a142fd29d1baa8fcc4dd75
tree806c5d8848c1ae773bec9945ec0367f2f6cf020d
parentc0cdef185a6b5c8f3c5e6b923e95774c36764011
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>
(cherry picked from commit 0c8eb04a6241da28deb108181213b791c378123b)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/kvm_main.c