diff options
author | Andrew Morton <akpm@digeo.com> | 2003-02-14 20:22:56 -0800 |
---|---|---|
committer | Jens Axboe <axboe@suse.de> | 2003-02-14 20:22:56 -0800 |
commit | 358bae5b0ef73e168aab2f07daf5c4f06d8f3f30 (patch) | |
tree | 304ebdf9a70de8a2027c8ec7960d47117174ffc5 /fs/ext3/xattr.c | |
parent | d8a55dda64db958ac5e118cb0088fea543af43f5 (diff) | |
download | history-358bae5b0ef73e168aab2f07daf5c4f06d8f3f30.tar.gz |
[PATCH] error checking in ext3 xattr code
from Andreas Gruenbacher
Diffstat (limited to 'fs/ext3/xattr.c')
-rw-r--r-- | fs/ext3/xattr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext3/xattr.c b/fs/ext3/xattr.c index b318e57d466aca..37f717cd1dbc44 100644 --- a/fs/ext3/xattr.c +++ b/fs/ext3/xattr.c @@ -848,7 +848,7 @@ ext3_xattr_set(struct inode *inode, int name_index, const char *name, const void *value, size_t value_len, int flags) { handle_t *handle; - int error; + int error, error2; lock_kernel(); handle = ext3_journal_start(inode, EXT3_XATTR_TRANS_BLOCKS); @@ -857,10 +857,10 @@ ext3_xattr_set(struct inode *inode, int name_index, const char *name, else error = ext3_xattr_set_handle(handle, inode, name_index, name, value, value_len, flags); - ext3_journal_stop(handle, inode); + error2 = ext3_journal_stop(handle, inode); unlock_kernel(); - return error; + return error ? error : error2; } /* |