lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <20130729235138.GD3648@gmail.com> Date: Tue, 30 Jul 2013 07:51:38 +0800 From: Zheng Liu <gnehzuil.liu@...il.com> To: Theodore Ts'o <tytso@....edu> Cc: Ext4 Developers List <linux-ext4@...r.kernel.org>, stable@...r.kernel.org Subject: Re: [PATCH] ext4: fix retry handling in ext4_ext_truncate() On Mon, Jul 29, 2013 at 12:15:02PM -0400, Theodore Ts'o wrote: > We tested for ENOMEM instead of -ENOMEM. Oops. > > Signed-off-by: "Theodore Ts'o" <tytso@....edu> > Cc: stable@...r.kernel.org Reviewed-by: Zheng Liu <wenqing.lz@...bao.com> - Zheng > --- > fs/ext4/extents.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c > index a618738..72ba470 100644 > --- a/fs/ext4/extents.c > +++ b/fs/ext4/extents.c > @@ -4412,7 +4412,7 @@ void ext4_ext_truncate(handle_t *handle, struct inode *inode) > retry: > err = ext4_es_remove_extent(inode, last_block, > EXT_MAX_BLOCKS - last_block); > - if (err == ENOMEM) { > + if (err == -ENOMEM) { > cond_resched(); > congestion_wait(BLK_RW_ASYNC, HZ/50); > goto retry; > -- > 1.7.12.rc0.22.gcdd159b > > -- > To unsubscribe from this list: send the line "unsubscribe linux-ext4" in > the body of a message to majordomo@...r.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists