[PATCH] files: fix preemption issues
[deliverable/linux.git] / arch / ia64 / kernel / perfmon.c
index af42cda6be80dfdc1935685de95e77f7a250e9a7..d71731ee5b61fc8ce322458d3ca4dc9012b48335 100644 (file)
@@ -2218,12 +2218,13 @@ static void
 pfm_free_fd(int fd, struct file *file)
 {
        struct files_struct *files = current->files;
-       struct fdtable *fdt = files_fdtable(files);
+       struct fdtable *fdt;
 
        /* 
         * there ie no fd_uninstall(), so we do it here
         */
        spin_lock(&files->file_lock);
+       fdt = files_fdtable(files);
        rcu_assign_pointer(fdt->fd[fd], NULL);
        spin_unlock(&files->file_lock);
 
This page took 0.044509 seconds and 5 git commands to generate.