Thread (14 messages) 14 messages, 5 authors, 2017-08-28

Re: [PATCH] fix memory leak on kvm_vm_ioctl_create_spapr_tce

From: David Hildenbrand <hidden>
Date: 2017-08-23 09:16:32
Also in: kvm, lkml

quoted
quoted
+               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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help