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
nexedi
linux
Commits
ce812c28
Commit
ce812c28
authored
Apr 23, 2004
by
Anton Altaparmakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NTFS: Move a few assignments after a NULL check in fs/ntfs/attrib.c.
parent
9c82a749
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
fs/ntfs/attrib.c
fs/ntfs/attrib.c
+6
-3
No files found.
fs/ntfs/attrib.c
View file @
ce812c28
...
@@ -1235,11 +1235,11 @@ int load_attribute_list(ntfs_volume *vol, run_list *run_list, u8 *al_start,
...
@@ -1235,11 +1235,11 @@ int load_attribute_list(ntfs_volume *vol, run_list *run_list, u8 *al_start,
u8
*
al_end
=
al
+
initialized_size
;
u8
*
al_end
=
al
+
initialized_size
;
run_list_element
*
rl
;
run_list_element
*
rl
;
struct
buffer_head
*
bh
;
struct
buffer_head
*
bh
;
struct
super_block
*
sb
=
vol
->
sb
;
struct
super_block
*
sb
;
unsigned
long
block_size
=
sb
->
s_blocksize
;
unsigned
long
block_size
;
unsigned
long
block
,
max_block
;
unsigned
long
block
,
max_block
;
int
err
=
0
;
int
err
=
0
;
unsigned
char
block_size_bits
=
sb
->
s_blocksize_bits
;
unsigned
char
block_size_bits
;
ntfs_debug
(
"Entering."
);
ntfs_debug
(
"Entering."
);
if
(
!
vol
||
!
run_list
||
!
al
||
size
<=
0
||
initialized_size
<
0
||
if
(
!
vol
||
!
run_list
||
!
al
||
size
<=
0
||
initialized_size
<
0
||
...
@@ -1249,6 +1249,9 @@ int load_attribute_list(ntfs_volume *vol, run_list *run_list, u8 *al_start,
...
@@ -1249,6 +1249,9 @@ int load_attribute_list(ntfs_volume *vol, run_list *run_list, u8 *al_start,
memset
(
al
,
0
,
size
);
memset
(
al
,
0
,
size
);
return
0
;
return
0
;
}
}
sb
=
vol
->
sb
;
block_size
=
sb
->
s_blocksize
;
block_size_bits
=
sb
->
s_blocksize_bits
;
down_read
(
&
run_list
->
lock
);
down_read
(
&
run_list
->
lock
);
rl
=
run_list
->
rl
;
rl
=
run_list
->
rl
;
/* Read all clusters specified by the run list one run at a time. */
/* Read all clusters specified by the run list one run at a time. */
...
...
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