module_put(dev->ib_dev->owner); return -ENOMEM;
ret = -ENOMEM; goto err_module;
static int ib_uverbs_open(struct inode *inode, struct file *filp){	struct ib_uverbs_device *dev =		container_of(inode->i_cdev, struct ib_uverbs_device, dev);	struct ib_uverbs_file *file;	if (!try_module_get(dev->ib_dev->owner))		return -ENODEV;	file = kmalloc(sizeof *file, GFP_KERNEL);	if (!file) {		module_put(dev->ib_dev->owner);		return -ENOMEM;	}	file->device   = dev;	file->ucontext = NULL;	kref_init(&file->ref);	init_MUTEX(&file->mutex);	filp->private_data = file;	return 0;}