~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to fs/ncpfs/inode.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
461
461
#endif
462
462
        struct ncp_entry_info finfo;
463
463
 
464
 
        data.wdog_pid = NULL;
 
464
        memset(&data, 0, sizeof(data));
465
465
        server = kzalloc(sizeof(struct ncp_server), GFP_KERNEL);
466
466
        if (!server)
467
467
                return -ENOMEM;
496
496
                                struct ncp_mount_data_v4* md = (struct ncp_mount_data_v4*)raw_data;
497
497
 
498
498
                                data.flags = md->flags;
499
 
                                data.int_flags = 0;
500
499
                                data.mounted_uid = md->mounted_uid;
501
500
                                data.wdog_pid = find_get_pid(md->wdog_pid);
502
501
                                data.ncp_fd = md->ncp_fd;
507
506
                                data.file_mode = md->file_mode;
508
507
                                data.dir_mode = md->dir_mode;
509
508
                                data.info_fd = -1;
510
 
                                data.mounted_vol[0] = 0;
511
509
                        }
512
510
                        break;
513
511
                default:
596
594
/*      server->priv.data = NULL;               */
597
595
 
598
596
        server->m = data;
599
 
        /* Althought anything producing this is buggy, it happens
 
597
        /* Although anything producing this is buggy, it happens
600
598
           now because of PATH_MAX changes.. */
601
599
        if (server->m.time_out < 1) {
602
600
                server->m.time_out = 10;