commit | 70b0bc4c0a05cb68ffeeaba8c8340896b5ff6fd7 | [log] [tgz] |
---|---|---|
author | Michal Luczaj <mhal@rbox.co> | Mon Mar 27 19:54:57 2023 +0200 |
committer | Sean Christopherson <seanjc@google.com> | Thu Jun 01 13:48:54 2023 -0700 |
tree | d74308c62abb8ebd350bdf2aca9236236ac614ef | |
parent | c9d601548603c54919a3b1333c5b972252b4031d [diff] |
KVM: Don't kfree(NULL) on kzalloc() failure in kvm_assign_ioeventfd_idx() On kzalloc() failure, taking the `goto fail` path leads to kfree(NULL). Such no-op has no use. Move it out. Signed-off-by: Michal Luczaj <mhal@rbox.co> Reviewed-by: Sean Christopherson <seanjc@google.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Link: https://lore.kernel.org/r/20230327175457.735903-1-mhal@rbox.co Signed-off-by: Sean Christopherson <seanjc@google.com>