]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/nommu.c
[PATCH] csa: convert CONFIG tag for extended accounting routines
[linux-2.6-omap-h63xx.git] / mm / nommu.c
index 564540662192290b67f4a000c969407c404e86ad..365019599df8556c23d493f007a07dbf201add00 100644 (file)
@@ -948,7 +948,8 @@ unsigned long do_mmap_pgoff(struct file *file,
        up_write(&nommu_vma_sem);
        kfree(vml);
        if (vma) {
-               fput(vma->vm_file);
+               if (vma->vm_file)
+                       fput(vma->vm_file);
                kfree(vma);
        }
        return ret;