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
22316c1c
Commit
22316c1c
authored
Oct 17, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] 64bit fixes for smbfs
By Urban Widmark
parent
00b0ac82
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
0 deletions
+12
-0
arch/ia64/ia32/sys_ia32.c
arch/ia64/ia32/sys_ia32.c
+3
-0
arch/ppc64/kernel/sys_ppc32.c
arch/ppc64/kernel/sys_ppc32.c
+3
-0
arch/s390x/kernel/linux32.c
arch/s390x/kernel/linux32.c
+3
-0
arch/sparc64/kernel/sys_sparc32.c
arch/sparc64/kernel/sys_sparc32.c
+3
-0
No files found.
arch/ia64/ia32/sys_ia32.c
View file @
22316c1c
...
...
@@ -3772,12 +3772,15 @@ do_smb_super_data_conv(void *raw_data)
struct
smb_mount_data
*
s
=
(
struct
smb_mount_data
*
)
raw_data
;
struct
smb_mount_data32
*
s32
=
(
struct
smb_mount_data32
*
)
raw_data
;
if
(
s32
->
version
!=
SMB_MOUNT_OLDVERSION
)
goto
out
;
s
->
version
=
s32
->
version
;
s
->
mounted_uid
=
s32
->
mounted_uid
;
s
->
uid
=
s32
->
uid
;
s
->
gid
=
s32
->
gid
;
s
->
file_mode
=
s32
->
file_mode
;
s
->
dir_mode
=
s32
->
dir_mode
;
out:
return
raw_data
;
}
...
...
arch/ppc64/kernel/sys_ppc32.c
View file @
22316c1c
...
...
@@ -332,12 +332,15 @@ static void *do_smb_super_data_conv(void *raw_data)
struct
smb_mount_data
*
s
=
(
struct
smb_mount_data
*
)
raw_data
;
struct
smb_mount_data32
*
s32
=
(
struct
smb_mount_data32
*
)
raw_data
;
if
(
s32
->
version
!=
SMB_MOUNT_OLDVERSION
)
goto
out
;
s
->
version
=
s32
->
version
;
s
->
mounted_uid
=
s32
->
mounted_uid
;
s
->
uid
=
s32
->
uid
;
s
->
gid
=
s32
->
gid
;
s
->
file_mode
=
s32
->
file_mode
;
s
->
dir_mode
=
s32
->
dir_mode
;
out:
return
raw_data
;
}
...
...
arch/s390x/kernel/linux32.c
View file @
22316c1c
...
...
@@ -1563,12 +1563,15 @@ static void *do_smb_super_data_conv(void *raw_data)
struct
smb_mount_data
*
s
=
(
struct
smb_mount_data
*
)
raw_data
;
struct
smb_mount_data32
*
s32
=
(
struct
smb_mount_data32
*
)
raw_data
;
if
(
s32
->
version
!=
SMB_MOUNT_OLDVERSION
)
goto
out
;
s
->
version
=
s32
->
version
;
s
->
mounted_uid
=
low2highuid
(
s32
->
mounted_uid
);
s
->
uid
=
low2highuid
(
s32
->
uid
);
s
->
gid
=
low2highgid
(
s32
->
gid
);
s
->
file_mode
=
s32
->
file_mode
;
s
->
dir_mode
=
s32
->
dir_mode
;
out:
return
raw_data
;
}
...
...
arch/sparc64/kernel/sys_sparc32.c
View file @
22316c1c
...
...
@@ -1582,6 +1582,8 @@ static void *do_smb_super_data_conv(void *raw_data)
struct
smb_mount_data
news
,
*
s
=
&
news
;
struct
smb_mount_data32
*
s32
=
(
struct
smb_mount_data32
*
)
raw_data
;
if
(
s32
->
version
!=
SMB_MOUNT_OLDVERSION
)
goto
out
;
s
->
version
=
s32
->
version
;
s
->
mounted_uid
=
low2highuid
(
s32
->
mounted_uid
);
s
->
uid
=
low2highuid
(
s32
->
uid
);
...
...
@@ -1589,6 +1591,7 @@ static void *do_smb_super_data_conv(void *raw_data)
s
->
file_mode
=
s32
->
file_mode
;
s
->
dir_mode
=
s32
->
dir_mode
;
memcpy
(
raw_data
,
s
,
sizeof
(
struct
smb_mount_data
));
out:
return
raw_data
;
}
...
...
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