mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] 9p: fix marshalling bug in tcreate with empty extension field
Signed-off-by: Russ Ross <[email protected]> Signed-off-by: Eric Van Hensbergen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
0e31f51d81
commit
4c90c68aca
1 changed files with 4 additions and 2 deletions
|
|
@ -673,8 +673,10 @@ struct v9fs_fcall *v9fs_create_tcreate(u32 fid, char *name, u32 perm, u8 mode,
|
|||
struct cbuf *bufp = &buffer;
|
||||
|
||||
size = 4 + 2 + strlen(name) + 4 + 1; /* fid[4] name[s] perm[4] mode[1] */
|
||||
if (extended && extension!=NULL)
|
||||
size += 2 + strlen(extension); /* extension[s] */
|
||||
if (extended) {
|
||||
size += 2 + /* extension[s] */
|
||||
(extension == NULL ? 0 : strlen(extension));
|
||||
}
|
||||
|
||||
fc = v9fs_create_common(bufp, size, TCREATE);
|
||||
if (IS_ERR(fc))
|
||||
|
|
|
|||
Loading…
Reference in a new issue