diff options
Diffstat (limited to 'fs/cifs/sess.c')
-rw-r--r-- | fs/cifs/sess.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c index d1705ab8136e..22b4c35dcfe3 100644 --- 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, | |||
111 | bytes_ret = cifs_strtoUCS((__le16 *)bcc_ptr, "Linux version ", 32, | 111 | bytes_ret = cifs_strtoUCS((__le16 *)bcc_ptr, "Linux version ", 32, |
112 | nls_cp); | 112 | nls_cp); |
113 | bcc_ptr += 2 * bytes_ret; | 113 | bcc_ptr += 2 * bytes_ret; |
114 | bytes_ret = cifs_strtoUCS((__le16 *) bcc_ptr, system_utsname.release, | 114 | bytes_ret = cifs_strtoUCS((__le16 *) bcc_ptr, init_utsname()->release, |
115 | 32, nls_cp); | 115 | 32, nls_cp); |
116 | bcc_ptr += 2 * bytes_ret; | 116 | bcc_ptr += 2 * bytes_ret; |
117 | bcc_ptr += 2; /* trailing null */ | 117 | bcc_ptr += 2; /* trailing null */ |
@@ -158,8 +158,8 @@ static void ascii_ssetup_strings(char ** pbcc_area, struct cifsSesInfo *ses, | |||
158 | 158 | ||
159 | strcpy(bcc_ptr, "Linux version "); | 159 | strcpy(bcc_ptr, "Linux version "); |
160 | bcc_ptr += strlen("Linux version "); | 160 | bcc_ptr += strlen("Linux version "); |
161 | strcpy(bcc_ptr, system_utsname.release); | 161 | strcpy(bcc_ptr, init_utsname()->release); |
162 | bcc_ptr += strlen(system_utsname.release) + 1; | 162 | bcc_ptr += strlen(init_utsname()->release) + 1; |
163 | 163 | ||
164 | strcpy(bcc_ptr, CIFS_NETWORK_OPSYS); | 164 | strcpy(bcc_ptr, CIFS_NETWORK_OPSYS); |
165 | bcc_ptr += strlen(CIFS_NETWORK_OPSYS) + 1; | 165 | bcc_ptr += strlen(CIFS_NETWORK_OPSYS) + 1; |