From: Nicholas Krause <hidden> Date: 2015-08-07 15:54:59
This fixes the incorrect return statement in the function
mpic_set_default_irq_routing from always returning zero
to signal success to this function's caller to instead
return the return value of kvm_set_irq_routing as this
function can fail and we need to correctly signal the
caller of mpic_set_default_irq_routing when the call
to this particular function has failed.
Signed-off-by: Nicholas Krause <redacted>
---
arch/powerpc/kvm/mpic.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
@@ -1641,16 +1641,17 @@ static void mpic_destroy(struct kvm_device *dev)staticintmpic_set_default_irq_routing(structopenpic*opp){structkvm_irq_routing_entry*routing;+intret;/* Create a nop default map, so that dereferencing it still works */routing=kzalloc((sizeof(*routing)),GFP_KERNEL);if(!routing)return-ENOMEM;-kvm_set_irq_routing(opp->kvm,routing,0,0);+ret=kvm_set_irq_routing(opp->kvm,routing,0,0);kfree(routing);-return0;+returnret;}staticintmpic_create(structkvm_device*dev,u32type)
From: Alexander Graf <hidden> Date: 2015-08-12 19:05:40
On 07.08.15 17:54, Nicholas Krause wrote:
This fixes the incorrect return statement in the function
mpic_set_default_irq_routing from always returning zero
to signal success to this function's caller to instead
return the return value of kvm_set_irq_routing as this
function can fail and we need to correctly signal the
caller of mpic_set_default_irq_routing when the call
to this particular function has failed.
Signed-off-by: Nicholas Krause <redacted>
I like the patch, but I don't see it on the kvm-ppc mailing list. It
doesn't show up on patchwork or spinics. Did something go wrong while
sending it out?
Alex
This fixes the incorrect return statement in the function
mpic_set_default_irq_routing from always returning zero
to signal success to this function's caller to instead
return the return value of kvm_set_irq_routing as this
function can fail and we need to correctly signal the
caller of mpic_set_default_irq_routing when the call
to this particular function has failed.
Signed-off-by: Nicholas Krause <redacted>
I like the patch, but I don't see it on the kvm-ppc mailing list. It
doesn't show up on patchwork or spinics. Did something go wrong while
sending it out?
Alex
Alex,
Ask Paolo about it as he would be able to explain it better then I.
Nick
From: Alexander Graf <hidden> Date: 2015-08-12 19:13:00
On 12.08.15 21:06, nick wrote:
On 2015-08-12 03:05 PM, Alexander Graf wrote:
quoted
On 07.08.15 17:54, Nicholas Krause wrote:
quoted
This fixes the incorrect return statement in the function
mpic_set_default_irq_routing from always returning zero
to signal success to this function's caller to instead
return the return value of kvm_set_irq_routing as this
function can fail and we need to correctly signal the
caller of mpic_set_default_irq_routing when the call
to this particular function has failed.
Signed-off-by: Nicholas Krause <redacted>
I like the patch, but I don't see it on the kvm-ppc mailing list. It
doesn't show up on patchwork or spinics. Did something go wrong while
sending it out?
Alex
Alex,
Ask Paolo about it as he would be able to explain it better then I.
Well, whatever the reason, I can only apply patches that actually
appeared on the public mailing list. Otherwise people may not get the
chance to review them ;).
Alex