On 22/08/2016 23:17, SF Markus Elfring wrote:
>> If in doubt, the compiler will be _much_ better at optimizing
>> that kind of stuff anyway.
>
> Which compiler (or optimizer) implementation is capable to restructure
> the jump targets for you automatically in the way I propose here?
If kfree we
>> @@ -273,10 +273,12 @@ int kvm_s390_import_bp_data(struct kvm_vcpu *vcpu,
>> vcpu->arch.guestdbg.nr_hw_wp = nr_wp;
>> vcpu->arch.guestdbg.hw_wp_info = wp_info;
>> return 0;
>> -error:
>> -kfree(bp_data);
>> -kfree(wp_info);
>> +free_bp_info:
>> kfree(bp_info);
>> +free
On 08/17/2016 02:10 PM, SF Markus Elfring wrote:
> From: Markus Elfring
> Date: Wed, 17 Aug 2016 19:25:50 +0200
>
> The kfree() function was called in a few cases by the
> kvm_s390_import_bp_data() function during error handling
> even if a passed variable contained a null pointer.
>
> Adjust ju
On Mon, 22 Aug 2016 23:17:26 +0200
SF Markus Elfring wrote:
> @@ -273,10 +273,12 @@ int kvm_s390_import_bp_data(struct kvm_vcpu *vcpu,
> vcpu->arch.guestdbg.nr_hw_wp = nr_wp;
> vcpu->arch.guestdbg.hw_wp_info = wp_info;
> return 0;
> -error:
> >>
@@ -273,10 +273,12 @@ int kvm_s390_import_bp_data(struct kvm_vcpu *vcpu,
vcpu->arch.guestdbg.nr_hw_wp = nr_wp;
vcpu->arch.guestdbg.hw_wp_info = wp_info;
return 0;
-error:
- kfree(bp_data);
- kfree(wp_info);
+free_bp_info:
kfree(bp_info);
>>
On Mon, 22 Aug 2016 18:56:47 +0200
SF Markus Elfring wrote:
> >> @@ -273,10 +273,12 @@ int kvm_s390_import_bp_data(struct kvm_vcpu *vcpu,
> >>vcpu->arch.guestdbg.nr_hw_wp = nr_wp;
> >>vcpu->arch.guestdbg.hw_wp_info = wp_info;
> >>return 0;
> >> -error:
> >> - kfree(bp_data);
> >> -
>> @@ -273,10 +273,12 @@ int kvm_s390_import_bp_data(struct kvm_vcpu *vcpu,
>> vcpu->arch.guestdbg.nr_hw_wp = nr_wp;
>> vcpu->arch.guestdbg.hw_wp_info = wp_info;
>> return 0;
>> -error:
>> -kfree(bp_data);
>> -kfree(wp_info);
>> +free_bp_info:
>> kfree(bp_info);
>> +free
On Wed, 17 Aug 2016 20:10:37 +0200
SF Markus Elfring wrote:
> From: Markus Elfring
> Date: Wed, 17 Aug 2016 19:25:50 +0200
>
> The kfree() function was called in a few cases by the
> kvm_s390_import_bp_data() function during error handling
> even if a passed variable contained a null pointer.
>
> From: Markus Elfring
> Date: Wed, 17 Aug 2016 19:25:50 +0200
>
> The kfree() function was called in a few cases by the
> kvm_s390_import_bp_data() function during error handling
> even if a passed variable contained a null pointer.
>
> Adjust jump targets according to the Linux coding style co
From: Markus Elfring
Date: Wed, 17 Aug 2016 19:25:50 +0200
The kfree() function was called in a few cases by the
kvm_s390_import_bp_data() function during error handling
even if a passed variable contained a null pointer.
Adjust jump targets according to the Linux coding style convention.
Signe
10 matches
Mail list logo