Skip to content

Commit 15b7b73

Browse files
dmatlackbonzini
authored andcommitted
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: 9e965bb ("KVM: selftests: Add backing src parameter to dirty_log_perf_test") Reviewed-by: Ben Gardon <[email protected]> Signed-off-by: David Matlack <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 76b4f35 commit 15b7b73

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/selftests/kvm/dirty_log_perf_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ int main(int argc, char *argv[])
312312
break;
313313
case 'o':
314314
p.partition_vcpu_memory_access = false;
315+
break;
315316
case 's':
316317
p.backing_src = parse_backing_src_type(optarg);
317318
break;

0 commit comments

Comments
 (0)