diff options
| author | Herbert Pƶtzl <herbert@13thfloor.at> | 2005-01-25 18:43:01 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-25 18:43:01 -0800 |
| commit | c4eadeb71803d271a4b1c09f976824190e4f1f60 (patch) | |
| tree | 32ca3943fe573b1adcfcdf97721ceed542ab0cbb /net/unix/af_unix.c | |
| parent | 9a6008b6b8e208abbbc4abf5a02672cfcefdf7a3 (diff) | |
[PATCH] fix ext3 quota allocation bug on error path ...
looking at ext3_xattr_block_set() [fs/ext3/xattr.c] ...
I see that
error = -EDQUOT;
if (DQUOT_ALLOC_BLOCK(inode, 1))
goto cleanup;
allocates a quota block, but right after that several
error echecks happen ...
if (error)
goto cleanup;
and I don't see any DQUOT_FREE_BLOCK() in the errorpath
cleanup:
if (ce)
mb_cache_entry_release(ce);
brelse(new_bh);
if (!(bs->bh && s->base == bs->bh->b_data))
kfree(s->base);
return error;
I'd suggest the attached fix.
Acked-by: Jan Kara <jack@suse.cz>
Acked-by: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
