git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] namespaces: utsname: use init_utsname when appropriate
[pandora-kernel.git]
/
fs
/
cifs
/
sess.c
diff --git
a/fs/cifs/sess.c
b/fs/cifs/sess.c
index
7202d53
..
22b4c35
100644
(file)
--- a/
fs/cifs/sess.c
+++ b/
fs/cifs/sess.c
@@
-111,7
+111,7
@@
static void unicode_ssetup_strings(char ** pbcc_area, struct cifsSesInfo *ses,
bytes_ret = cifs_strtoUCS((__le16 *)bcc_ptr, "Linux version ", 32,
nls_cp);
bcc_ptr += 2 * bytes_ret;
bytes_ret = cifs_strtoUCS((__le16 *)bcc_ptr, "Linux version ", 32,
nls_cp);
bcc_ptr += 2 * bytes_ret;
- bytes_ret = cifs_strtoUCS((__le16 *) bcc_ptr,
system_utsname.
release,
+ bytes_ret = cifs_strtoUCS((__le16 *) bcc_ptr,
init_utsname()->
release,
32, nls_cp);
bcc_ptr += 2 * bytes_ret;
bcc_ptr += 2; /* trailing null */
32, nls_cp);
bcc_ptr += 2 * bytes_ret;
bcc_ptr += 2; /* trailing null */
@@
-158,8
+158,8
@@
static void ascii_ssetup_strings(char ** pbcc_area, struct cifsSesInfo *ses,
strcpy(bcc_ptr, "Linux version ");
bcc_ptr += strlen("Linux version ");
strcpy(bcc_ptr, "Linux version ");
bcc_ptr += strlen("Linux version ");
- strcpy(bcc_ptr,
system_utsname.
release);
- bcc_ptr += strlen(
system_utsname.
release) + 1;
+ strcpy(bcc_ptr,
init_utsname()->
release);
+ bcc_ptr += strlen(
init_utsname()->
release) + 1;
strcpy(bcc_ptr, CIFS_NETWORK_OPSYS);
bcc_ptr += strlen(CIFS_NETWORK_OPSYS) + 1;
strcpy(bcc_ptr, CIFS_NETWORK_OPSYS);
bcc_ptr += strlen(CIFS_NETWORK_OPSYS) + 1;
@@
-372,7
+372,7
@@
CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses, int first_time,
/* no capabilities flags in old lanman negotiation */
/* no capabilities flags in old lanman negotiation */
- pSMB->old_req.PasswordLength =
CIFS_SESS_KEY_SIZE
;
+ pSMB->old_req.PasswordLength =
cpu_to_le16(CIFS_SESS_KEY_SIZE)
;
/* BB calculate hash with password */
/* and copy into bcc */
/* BB calculate hash with password */
/* and copy into bcc */