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: 9e965bb75aae ("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>
This commit is contained in:
parent
76b4f357d0
commit
15b7b737de
@ -312,6 +312,7 @@ int main(int argc, char *argv[])
|
|||||||
break;
|
break;
|
||||||
case 'o':
|
case 'o':
|
||||||
p.partition_vcpu_memory_access = false;
|
p.partition_vcpu_memory_access = false;
|
||||||
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
p.backing_src = parse_backing_src_type(optarg);
|
p.backing_src = parse_backing_src_type(optarg);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user