diff options
| author | Frederic Weisbecker <fweisbec@gmail.com> | 2013-05-02 17:37:49 +0200 | 
|---|---|---|
| committer | Frederic Weisbecker <fweisbec@gmail.com> | 2013-05-02 17:54:19 +0200 | 
| commit | c032862fba51a3ca504752d3a25186b324c5ce83 (patch) | |
| tree | 955dc2ba4ab3df76ecc2bb780ee84aca04967e8d /fs/ecryptfs/miscdev.c | |
| parent | fda76e074c7737fc57855dd17c762e50ed526052 (diff) | |
| parent | 8700c95adb033843fc163d112b9d21d4fda78018 (diff) | |
| download | olio-linux-3.10-c032862fba51a3ca504752d3a25186b324c5ce83.tar.xz olio-linux-3.10-c032862fba51a3ca504752d3a25186b324c5ce83.zip  | |
Merge commit '8700c95adb03' into timers/nohz
The full dynticks tree needs the latest RCU and sched
upstream updates in order to fix some dependencies.
Merge a common upstream merge point that has these
updates.
Conflicts:
	include/linux/perf_event.h
	kernel/rcutree.h
	kernel/rcutree_plugin.h
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'fs/ecryptfs/miscdev.c')
| -rw-r--r-- | fs/ecryptfs/miscdev.c | 14 | 
1 files changed, 2 insertions, 12 deletions
diff --git a/fs/ecryptfs/miscdev.c b/fs/ecryptfs/miscdev.c index 412e6eda25f..e4141f25749 100644 --- a/fs/ecryptfs/miscdev.c +++ b/fs/ecryptfs/miscdev.c @@ -80,13 +80,6 @@ ecryptfs_miscdev_open(struct inode *inode, struct file *file)  	int rc;  	mutex_lock(&ecryptfs_daemon_hash_mux); -	rc = try_module_get(THIS_MODULE); -	if (rc == 0) { -		rc = -EIO; -		printk(KERN_ERR "%s: Error attempting to increment module use " -		       "count; rc = [%d]\n", __func__, rc); -		goto out_unlock_daemon_list; -	}  	rc = ecryptfs_find_daemon_by_euid(&daemon);  	if (!rc) {  		rc = -EINVAL; @@ -96,7 +89,7 @@ ecryptfs_miscdev_open(struct inode *inode, struct file *file)  	if (rc) {  		printk(KERN_ERR "%s: Error attempting to spawn daemon; "  		       "rc = [%d]\n", __func__, rc); -		goto out_module_put_unlock_daemon_list; +		goto out_unlock_daemon_list;  	}  	mutex_lock(&daemon->mux);  	if (daemon->flags & ECRYPTFS_DAEMON_MISCDEV_OPEN) { @@ -108,9 +101,6 @@ ecryptfs_miscdev_open(struct inode *inode, struct file *file)  	atomic_inc(&ecryptfs_num_miscdev_opens);  out_unlock_daemon:  	mutex_unlock(&daemon->mux); -out_module_put_unlock_daemon_list: -	if (rc) -		module_put(THIS_MODULE);  out_unlock_daemon_list:  	mutex_unlock(&ecryptfs_daemon_hash_mux);  	return rc; @@ -147,7 +137,6 @@ ecryptfs_miscdev_release(struct inode *inode, struct file *file)  		       "bug.\n", __func__, rc);  		BUG();  	} -	module_put(THIS_MODULE);  	return rc;  } @@ -471,6 +460,7 @@ out_free:  static const struct file_operations ecryptfs_miscdev_fops = { +	.owner   = THIS_MODULE,  	.open    = ecryptfs_miscdev_open,  	.poll    = ecryptfs_miscdev_poll,  	.read    = ecryptfs_miscdev_read,  |