VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
author: Dr. David Alan Gilbert <linux@treblig.org> 2010-12-13 17:09:52 +0000 committer: Al Viro <viro@zeniv.linux.org.uk> 2011-01-17 05:11:37 -0500 commit: 274052ef0bac011249925f6616d147b1491fc601 parent: e0bb6bda43e20aa1db5774c73a519cd52c463a55
Commit Summary:
hpfs_setattr error case avoids unlock_kernel
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/hpfs/inode.c b/fs/hpfs/inode.c
index 56f0da1cfd10..1ae35baa539e 100644
--- a/fs/hpfs/inode.c
+++ b/fs/hpfs/inode.c
@@ -281,7 +281,7 @@ int hpfs_setattr(struct dentry *dentry, struct iattr *attr)
 	    attr->ia_size != i_size_read(inode)) {
 		error = vmtruncate(inode, attr->ia_size);
 		if (error)
-			return error;
+			goto out_unlock;
 	}
 
 	setattr_copy(inode, attr);