]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Re: 2.5: further llseek cleanup (3/3)
authorRobert Love <rml@tech9.net>
Mon, 18 Feb 2002 00:32:45 +0000 (16:32 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Mon, 18 Feb 2002 00:32:45 +0000 (16:32 -0800)
drivers/ieee1394/pcilynx.c

index 2cae730599ec0fdc0dae18ca9567b2438029d8ee..6194e0ceb9d71c5382a8595fd94f3874605e029a 100644 (file)
@@ -748,10 +748,11 @@ loff_t mem_llseek(struct file *file, loff_t offs, int orig)
         }
 
         if (newoffs < 0 || newoffs > PCILYNX_MAX_MEMORY + 1) {
-                lock_kernel();
+                unlock_kernel();
                 return -EINVAL;
         }
 
+        unlock_kernel();
         file->f_pos = newoffs;
         return newoffs;
 }