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

« back to all changes in this revision

Viewing changes to fs/cifs/readdir.c

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati, Ubuntu: 3.2.0-54.82
  • Date: 2013-09-16 18:33:05 UTC
  • Revision ID: package-import@ubuntu.com-20130916183305-rmc7dyj2wsodcgx0
Tags: 3.2.0-1438.57
* Release Tracking Bug
  - LP: #1223607

[ Paolo Pisati ]

* rebased on Ubuntu-3.2.0-54.82

[ Ubuntu: 3.2.0-54.82 ]

* Release Tracking Bug
  - LP: #1223490
* Revert "zram: use zram->lock to protect zram_free_page() in swap free
  notify path"
  - LP: #1215513
* x86 thermal: Delete power-limit-notification console messages
  - LP: #1215748
* x86 thermal: Disable power limit notification interrupt by default
  - LP: #1215748
* ARM: 7810/1: perf: Fix array out of bounds access in
  armpmu_map_hw_event()
  - LP: #1216442
  - CVE-2013-4254
* ARM: 7809/1: perf: fix event validation for software group leaders
  - LP: #1216442
  - CVE-2013-4254
* xfs: fix _xfs_buf_find oops on blocks beyond the filesystem end
  - LP: #1151527
  - CVE-2013-1819
* cifs: don't instantiate new dentries in readdir for inodes that need to
  be revalidated immediately
  - LP: #1222442

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
                dput(dentry);
97
97
        }
98
98
 
 
99
        /*
 
100
         * If we know that the inode will need to be revalidated immediately,
 
101
         * then don't create a new dentry for it. We'll end up doing an on
 
102
         * the wire call either way and this spares us an invalidation.
 
103
         */
 
104
        if (fattr->cf_flags & CIFS_FATTR_NEED_REVAL)
 
105
                return NULL;
 
106
 
99
107
        dentry = d_alloc(parent, name);
100
108
        if (dentry == NULL)
101
109
                return NULL;