]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Fix missing break in dirty_log_perf_test arg parsing
authorDavid Matlack <dmatlack@google.com>
Tue, 13 Jul 2021 22:09:56 +0000 (22:09 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Jul 2021 20:58:59 +0000 (16:58 -0400)
commit5ac17d16591fbb6ad9c7cc5cdc7c26ddf8c0a9a9
tree4ff412a77ceb4123716ffc353410b0b4a721c53f
parent31d800da8d960789c871309ef21af6cc99b83672
KVM: selftests: Fix missing break in dirty_log_perf_test arg parsing

There is a missing break statement which causes a fallthrough to the
next statement where optarg will be null and a segmentation fault will
be generated.

Fixes: e9c65a5bf2f1 ("KVM: selftests: Add backing src parameter to dirty_log_perf_test")
Reviewed-by: Ben Gardon <bgardon@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20210713220957.3493520-6-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/dirty_log_perf_test.c