Am Donnerstag, 27. November 2008 schrieb Davide Libenzi: > > =================================================================== > > --- kvm.orig/fs/anon_inodes.c > > +++ kvm/fs/anon_inodes.c > > @@ -79,9 +79,12 @@ int anon_inode_getfd(const char *name, c > > if (IS_ERR(anon_inode_inode)) > > return -ENODEV; > > > > + if (fops->owner && !try_module_get(fops->owner)) > > + return -ENOENT; > > + > > error = get_unused_fd_flags(flags); > > if (error < 0) > > - return error; > > + goto err_module; > > fd = error; > > > > /* > > @@ -128,6 +131,8 @@ err_dput: > > dput(dentry); > > err_put_unused_fd: > > put_unused_fd(fd); > > +err_module: > > + module_put(fops->owner); > > return error; > > } > > EXPORT_SYMBOL_GPL(anon_inode_getfd); > > Looks OK to me. Ok. Thanks. I will push this to Avi. Can I add a Reviewed-by: Davide Libenzi <davidel@xxxxxxxxxxxxxxx> to the patch? Christian -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html