Thread (3 messages) flat view 3 messages, 2 authors, 2015-08-07

Re: [PATCH] kvm:powerpc:Fix error handling in the function mpic_set_default_irq_routing

From: nick <hidden>
Date: 2015-08-07 14:00:58
Also in: kvm


On 2015-08-07 09:59 AM, Paolo Bonzini wrote:

On 07/08/2015 15:47, Nicholas Krause wrote:
quoted
-	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
Ok sure that seems fine to be and much simpler then this.
Sorry about the wasting your time with this patch.
Nick 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help