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
50df063c
Commit
50df063c
authored
Jun 14, 2004
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix fealist struct (xattr support part 3)
Signed-off-by: Steve French (sfrench@us.ibm.com)
parent
6f060189
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
fs/cifs/cifspdu.h
fs/cifs/cifspdu.h
+1
-1
fs/cifs/cifssmb.c
fs/cifs/cifssmb.c
+15
-2
No files found.
fs/cifs/cifspdu.h
View file @
50df063c
...
@@ -1700,7 +1700,7 @@ struct fea {
...
@@ -1700,7 +1700,7 @@ struct fea {
#define FEA_NEEDEA 0x80
/* need EA bit */
#define FEA_NEEDEA 0x80
/* need EA bit */
struct
fealist
{
struct
fealist
{
unsigned
long
list_len
;
__u32
list_len
;
struct
fea
list
[
1
];
struct
fea
list
[
1
];
};
};
...
...
fs/cifs/cifssmb.c
View file @
50df063c
...
@@ -2955,8 +2955,21 @@ CIFSSMBQAllEAs(const int xid, struct cifsTconInfo *tcon,
...
@@ -2955,8 +2955,21 @@ CIFSSMBQAllEAs(const int xid, struct cifsTconInfo *tcon,
memcpy((char *) pFindData,
memcpy((char *) pFindData,
(char *) &pSMBr->hdr.Protocol +
(char *) &pSMBr->hdr.Protocol +
pSMBr->DataOffset, kl);
pSMBr->DataOffset, kl);
}*/
else
}*/
else
{
rc
=
-
ENOMEM
;
/* check that length of list is not more than bcc */
/* check that each entry does not go beyond length
of list */
/* check that each element of each entry does not
go beyond end of list */
struct
fealist
*
ea_response_data
;
rc
=
0
;
/* validate_trans2_offsets() */
/* BB to check if(start of smb + pSMBr->DataOffset > &bcc+ bcc)*/
ea_response_data
=
(
struct
fealist
*
)
(((
char
*
)
&
pSMBr
->
hdr
.
Protocol
)
+
pSMBr
->
DataOffset
);
cFYI
(
1
,(
"ea length %d"
,
ea_response_data
->
list_len
));
}
}
}
if
(
pSMB
)
if
(
pSMB
)
cifs_buf_release
(
pSMB
);
cifs_buf_release
(
pSMB
);
...
...
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