aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorMichal Luczaj <[email protected]>2023-03-27 19:54:57 +0200
committerSean Christopherson <[email protected]>2023-06-01 13:48:54 -0700
commit70b0bc4c0a05cb68ffeeaba8c8340896b5ff6fd7 (patch)
treed74308c62abb8ebd350bdf2aca9236236ac614ef /lib/test_fortify/write_overflow-strncpy-src.c
parentc9d601548603c54919a3b1333c5b972252b4031d (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 <[email protected]> Reviewed-by: Sean Christopherson <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions