diff options
Diffstat (limited to 'fs/hpfs')
| -rw-r--r-- | fs/hpfs/namei.c | 4 | 
1 files changed, 1 insertions, 3 deletions
| diff --git a/fs/hpfs/namei.c b/fs/hpfs/namei.c index 1f05839c27a7..acf95dab2aac 100644 --- a/fs/hpfs/namei.c +++ b/fs/hpfs/namei.c @@ -395,7 +395,6 @@ again:  		dentry_unhash(dentry);  		if (!d_unhashed(dentry)) { -			dput(dentry);  			hpfs_unlock(dir->i_sb);  			return -ENOSPC;  		} @@ -403,7 +402,6 @@ again:  		    !S_ISREG(inode->i_mode) ||  		    get_write_access(inode)) {  			d_rehash(dentry); -			dput(dentry);  		} else {  			struct iattr newattrs;  			/*printk("HPFS: truncating file before delete.\n");*/ @@ -411,7 +409,6 @@ again:  			newattrs.ia_valid = ATTR_SIZE | ATTR_CTIME;  			err = notify_change(dentry, &newattrs);  			put_write_access(inode); -			dput(dentry);  			if (!err)  				goto again;  		} @@ -535,6 +532,7 @@ static int hpfs_rename(struct inode *old_dir, struct dentry *old_dentry,  	struct buffer_head *bh;  	struct fnode *fnode;  	int err; +  	if ((err = hpfs_chk_name(new_name, &new_len))) return err;  	err = 0;  	hpfs_adjust_length(old_name, &old_len); |