lkml.org 
[lkml]   [2002]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [PATCH] Re: 2.5: further llseek cleanup (3/3)
From
Date
On Sat, 2002-02-16 at 18:00, Robert Love wrote:
> Indeed. Thank you, Manfred.
>
> Linus, patch against 2.5.5-pre1 is attached. Please, apply.

Ugh, another one. Linus, please apply.

Robert Love

diff -urN linux-2.5.5-pre1/arch/cris/drivers/eeprom.c linux/arch/cris/drivers/eeprom.c
--- linux-2.5.5-pre1/arch/cris/drivers/eeprom.c Wed Feb 13 18:18:43 2002
+++ linux/arch/cris/drivers/eeprom.c Sat Feb 16 18:11:30 2002
@@ -470,17 +470,17 @@
/* 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 );
}


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.038 / U:7.264 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site