Messages in this thread | | | Subject | Re: [PATCH] fix memory leak on kvm_vm_ioctl_create_spapr_tce | From | David Hildenbrand <> | Date | Wed, 23 Aug 2017 11:16:24 +0200 |
| |
>>> + mutex_unlock(&kvm->lock); >>> + kvm_put_kvm(kvm); >>> + goto fail; >>> + } >>> + return ret; > > of simply > > if (!ret)
if (ret >= 0) return ret;
is of course what I meant :)
> return 0; > > mutex_lock(&kvm->lock); > list_del_rcu(&stt->list); > mutex_unlock(&kvm->lock); > kvm_put_kvm(kvm);
--
Thanks,
David
| |