/[linux-patches]/genpatches-2.6/trunk/2.6.14/1180_6_ufs-release-i_sem.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1180_6_ufs-release-i_sem.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 252 - (show annotations) (download) (as text)
Tue Jan 10 19:01:52 2006 UTC (14 years, 10 months ago) by dsd
Original Path: genpatches-2.6/trunk/2.6.14/1080_6_ufs-release-i_sem.patch
File MIME type: text/x-diff
File size: 949 byte(s)
Linux 2.6.14.6 thanks to kerframil
1 From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
2 Date: Wed, 4 Jan 2006 01:59:19 +0000 (-0800)
3 Subject: [PATCH] UFS: inode->i_sem is not released in error path
4 X-Git-Url: http://www.kernel.org/git/?p=linux/kernel/git/chrisw/linux-2.6.14.y.git;a=commitdiff;h=a8c6aa8791db53edbe27e6a4ae57ef95fc2c01c6
5
6 [PATCH] UFS: inode->i_sem is not released in error path
7
8 Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
9 Cc: <stable@kernel.org>
10 akpm: obviously correct, OK for -stable immediately.
11 Signed-off-by: Andrew Morton <akpm@osdl.org>
12 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
13 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 ---
15
16 --- a/fs/ufs/super.c
17 +++ b/fs/ufs/super.c
18 @@ -1294,8 +1294,10 @@ static ssize_t ufs_quota_write(struct su
19 blk++;
20 }
21 out:
22 - if (len == towrite)
23 + if (len == towrite) {
24 + up(&inode->i_sem);
25 return err;
26 + }
27 if (inode->i_size < off+len-towrite)
28 i_size_write(inode, off+len-towrite);
29 inode->i_version++;

  ViewVC Help
Powered by ViewVC 1.1.20