Commit 3aa909ab authored by Robert Love's avatar Robert Love Committed by Linus Torvalds

[PATCH] Re: 2.5: further llseek cleanup (3/3)

parent 687a765a
...@@ -748,10 +748,11 @@ loff_t mem_llseek(struct file *file, loff_t offs, int orig) ...@@ -748,10 +748,11 @@ loff_t mem_llseek(struct file *file, loff_t offs, int orig)
} }
if (newoffs < 0 || newoffs > PCILYNX_MAX_MEMORY + 1) { if (newoffs < 0 || newoffs > PCILYNX_MAX_MEMORY + 1) {
lock_kernel(); unlock_kernel();
return -EINVAL; return -EINVAL;
} }
unlock_kernel();
file->f_pos = newoffs; file->f_pos = newoffs;
return newoffs; return newoffs;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment