Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
358bae5b
Commit
358bae5b
authored
Feb 14, 2003
by
Andrew Morton
Committed by
Jens Axboe
Feb 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] error checking in ext3 xattr code
from Andreas Gruenbacher
parent
d8a55dda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fs/ext3/xattr.c
fs/ext3/xattr.c
+3
-3
No files found.
fs/ext3/xattr.c
View file @
358bae5b
...
@@ -848,7 +848,7 @@ ext3_xattr_set(struct inode *inode, int name_index, const char *name,
...
@@ -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
)
const
void
*
value
,
size_t
value_len
,
int
flags
)
{
{
handle_t
*
handle
;
handle_t
*
handle
;
int
error
;
int
error
,
error2
;
lock_kernel
();
lock_kernel
();
handle
=
ext3_journal_start
(
inode
,
EXT3_XATTR_TRANS_BLOCKS
);
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,
...
@@ -857,10 +857,10 @@ ext3_xattr_set(struct inode *inode, int name_index, const char *name,
else
else
error
=
ext3_xattr_set_handle
(
handle
,
inode
,
name_index
,
name
,
error
=
ext3_xattr_set_handle
(
handle
,
inode
,
name_index
,
name
,
value
,
value_len
,
flags
);
value
,
value_len
,
flags
);
ext3_journal_stop
(
handle
,
inode
);
e
rror2
=
e
xt3_journal_stop
(
handle
,
inode
);
unlock_kernel
();
unlock_kernel
();
return
error
;
return
error
?
error
:
error2
;
}
}
/*
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment