/[linux-patches]/genpatches-2.6/trunk/2.6.15/1920_ufs-inode-sem.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.15/1920_ufs-inode-sem.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 255 - (hide annotations) (download) (as text)
Wed Jan 11 21:15:20 2006 UTC (14 years, 7 months ago) by dsd
File MIME type: text/x-diff
File size: 1169 byte(s)
Several patches from 2.6.15.1 queue
1 dsd 255 From stable-bounces@linux.kernel.org Tue Jan 3 18:03:11 2006
2     Message-Id: <200601040159.k041xUT1004672@shell0.pdx.osdl.net>
3     To: johnpol@2ka.mipt.ru, stable@kernel.org, mm-commits@vger.kernel.org
4     From: akpm@osdl.org
5     Date: Tue, 03 Jan 2006 17:59:19 -0800
6     Subject: UFS: inode->i_sem is not released in error path
7    
8     From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
9    
10     Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
11     Cc: <stable@kernel.org>
12     akpm: obviously correct, OK for -stable immediately.
13     Signed-off-by: Andrew Morton <akpm@osdl.org>
14     Signed-off-by: Chris Wright <chrisw@sous-sol.org>
15     Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
16     ---
17    
18     fs/ufs/super.c | 4 +++-
19     1 files changed, 3 insertions(+), 1 deletion(-)
20    
21     Index: linux-2.6.15.y/fs/ufs/super.c
22     ===================================================================
23     --- linux-2.6.15.y.orig/fs/ufs/super.c
24     +++ linux-2.6.15.y/fs/ufs/super.c
25     @@ -1296,8 +1296,10 @@ static ssize_t ufs_quota_write(struct su
26     blk++;
27     }
28     out:
29     - if (len == towrite)
30     + if (len == towrite) {
31     + up(&inode->i_sem);
32     return err;
33     + }
34     if (inode->i_size < off+len-towrite)
35     i_size_write(inode, off+len-towrite);
36     inode->i_version++;

  ViewVC Help
Powered by ViewVC 1.1.20