[PATCH] fix memory leak on kvm_vm_ioctl_create_spapr_tce

Al Viro viro at ZenIV.linux.org.uk
Mon Aug 28 07:02:20 AEST 2017


On Wed, Aug 23, 2017 at 04:06:24PM +1000, Paul Mackerras wrote:

> It seems to me that it would be better to do the anon_inode_getfd()
> call before the kvm_get_kvm() call, and go to the fail label if it
> fails.

And what happens if another thread does close() on the (guessed) fd?


More information about the Linuxppc-dev mailing list