[PATCH] kvm:powerpc:Fix error handling in the function mpic_set_default_irq_routing
Paolo Bonzini
pbonzini at redhat.com
Fri Aug 7 23:59:28 AEST 2015
On 07/08/2015 15:47, Nicholas Krause wrote:
> - kvm_set_irq_routing(opp->kvm, routing, 0, 0);
> + ret = kvm_set_irq_routing(opp->kvm, routing, 0, 0);
> + if (ret) {
> + kfree(routing);
> + return ret;
> + }
>
> kfree(routing);
> return 0;
You could just return ret here. The new "if" is not necessary.
Paolo
More information about the Linuxppc-dev
mailing list