~ubuntu-branches/ubuntu/quantal/linux-lowlatency/quantal

« back to all changes in this revision

Viewing changes to fs/cifs/sess.c

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-04kado7d1u2er2rl
Tags: 3.2.0-16.25
Add new lowlatency kernel flavour

Show diffs side-by-side

added added

removed removed

Lines of Context:
246
246
        /* copy user */
247
247
        /* BB what about null user mounts - check that we do this BB */
248
248
        /* copy user */
249
 
        if (ses->user_name != NULL)
 
249
        if (ses->user_name != NULL) {
250
250
                strncpy(bcc_ptr, ses->user_name, MAX_USERNAME_SIZE);
 
251
                bcc_ptr += strnlen(ses->user_name, MAX_USERNAME_SIZE);
 
252
        }
251
253
        /* else null user mount */
252
 
 
253
 
        bcc_ptr += strnlen(ses->user_name, MAX_USERNAME_SIZE);
254
254
        *bcc_ptr = 0;
255
255
        bcc_ptr++; /* account for null termination */
256
256
 
257
257
        /* copy domain */
258
 
 
259
258
        if (ses->domainName != NULL) {
260
259
                strncpy(bcc_ptr, ses->domainName, 256);
261
260
                bcc_ptr += strnlen(ses->domainName, 256);