~ubuntu-branches/ubuntu/quantal/open-vm-tools/quantal-201207201942

« back to all changes in this revision

Viewing changes to modules/linux/vmblock/linux/control.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-10-18 12:28:19 UTC
  • mfrom: (1.1.7 upstream) (2.4.9 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091018122819-00vqew6m0ztpqcqp
Tags: 2009.10.15-201664-1
MergingĀ upstreamĀ versionĀ 2009.10.15-201664.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include <linux/module.h>
28
28
#include <linux/proc_fs.h>
29
29
#include <linux/stat.h>
30
 
#include "compat_uaccess.h"
31
 
#include "compat_fs.h"
 
30
#include <linux/fs.h>
 
31
 
 
32
#include <asm/uaccess.h>
32
33
 
33
34
#include "vmblockInt.h"
34
35
#include "block.h"
295
296
    * side-stepping the syscall auditing and doing the copy from user space
296
297
    * ourself.  Change this back once we GPL the module.
297
298
    */
298
 
   filename = compat___getname();
 
299
   filename = __getname();
299
300
   if (!filename) {
300
301
      Warning("ControlFileOpWrite: Could not obtain memory for filename.\n");
301
302
      return -ENOMEM;
302
303
   }
303
304
 
304
305
   /*
305
 
    * XXX: compat___getname() returns a pointer to a PATH_MAX-sized buffer.
 
306
    * XXX: __getname() returns a pointer to a PATH_MAX-sized buffer.
306
307
    * Hard-coding this size is also gross, but it's our only option here and
307
308
    * InodeOpLookup() already set a bad example by doing this.
308
309
    */
338
339
   }
339
340
 
340
341
exit:
341
 
   compat___putname(filename);
 
342
   __putname(filename);
342
343
   return ret;
343
344
}
344
345