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

« back to all changes in this revision

Viewing changes to security/tomoyo/mount.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:
138
138
        }
139
139
        if (need_dev) {
140
140
                /* Get mount point or device file. */
141
 
                if (kern_path(dev_name, LOOKUP_FOLLOW, &path)) {
 
141
                if (!dev_name || kern_path(dev_name, LOOKUP_FOLLOW, &path)) {
142
142
                        error = -ENOENT;
143
143
                        goto out;
144
144
                }
145
145
                requested_dev_name = tomoyo_realpath_from_path(&path);
 
146
                path_put(&path);
146
147
                if (!requested_dev_name) {
147
148
                        error = -ENOENT;
148
149
                        goto out;