]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: debugfs: Return retval of simple_attr_open() if it fails
authorHou Wenlong <houwenlong.hwl@antgroup.com>
Mon, 17 Oct 2022 03:06:10 +0000 (11:06 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Oct 2022 08:41:55 +0000 (04:41 -0400)
commit6b491357564d0ba2647a209aa086fc3bb03f389a
treecbdcab385fa666ff5cc87eeea298e1f079ac0371
parent58fb3e54d5925c730c691f06cf047ed1da34c271
KVM: debugfs: Return retval of simple_attr_open() if it fails

Although simple_attr_open() fails only with -ENOMEM with current code
base, it would be nicer to return retval of simple_attr_open() directly
in kvm_debugfs_open().

No functional change intended.

Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com>
Message-Id: <69d64d93accd1f33691b8a383ae555baee80f943.1665975828.git.houwenlong.hwl@antgroup.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c