kvm:x86:Fix error handling in the function ioapic_write_indirect
Paolo Bonzini
maintainerQuoted 7 lines · Nicholas Krause
This fixes error handling in the function
ioapic_write_indirectto properly check if the call to the functionioapoc_serviceservice has failed by not returning the value zero to indicate success to check if this occurs when calling this particular function and if so return immediately to the caller ofioapic_write_indirectdue to us no longer being able to continue the functionioapic_write_indirectafter this call fails.
This is not true.
You are back to the older problem that you are not trying to understand the functions you are modifying.
Paolo