Commit a9b979a5 authored by Robert Love's avatar Robert Love Committed by Linus Torvalds

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

Ugh, another one.  Linus, please apply.

	Robert Love
parent 3aa909ab
......@@ -470,17 +470,17 @@ static loff_t eeprom_lseek(struct file * file, loff_t offset, int orig)
/* truncate position */
if (file->f_pos < 0)
{
file->f_pos = 0;
unlock_kernel();
file->f_pos = 0;
ret = -EOVERFLOW;
}
if (file->f_pos >= eeprom.size)
{
file->f_pos = eeprom.size - 1;
ret = -EOVERFLOW;
}
unlock_kernel();
return ( ret );
}
......
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