* [PATCH] 2.5: further llseek cleanup (3/3)
@ 2002-02-16 22:31 Manfred Spraul
2002-02-16 23:00 ` [PATCH] " Robert Love
0 siblings, 1 reply; 3+ messages in thread
From: Manfred Spraul @ 2002-02-16 22:31 UTC (permalink / raw)
To: Robert Love; +Cc: torvalds, linux-kernel
Hi Robert,
I think the pcilynx change is wrong:
> - if (newoffs < 0 || newoffs > PCILYNX_MAX_MEMORY + 1) return
> -EINVAL;
> + if (newoffs < 0 || newoffs > PCILYNX_MAX_MEMORY + 1) {
> + lock_kernel();
^^^^^^ unlock_kernel()?
> + return -EINVAL;
> + }
>
> file->f_pos = newoffs;
^^^^^^^^^^^^^^^^^^^ where is the unlock here?
> return newoffs;
--
Manfred
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] Re: 2.5: further llseek cleanup (3/3)
2002-02-16 22:31 [PATCH] 2.5: further llseek cleanup (3/3) Manfred Spraul
@ 2002-02-16 23:00 ` Robert Love
2002-02-16 23:20 ` Robert Love
0 siblings, 1 reply; 3+ messages in thread
From: Robert Love @ 2002-02-16 23:00 UTC (permalink / raw)
To: Manfred Spraul, torvalds; +Cc: linux-kernel
On Sat, 2002-02-16 at 17:31, Manfred Spraul wrote:
> Hi Robert,
>
> I think the pcilynx change is wrong:
Indeed. Thank you, Manfred.
Linus, patch against 2.5.5-pre1 is attached. Please, apply.
Robert Love
diff -urN linux-2.5.5-pre1/drivers/ieee1394/pcilynx.c linux/drivers/ieee1394/pcilynx.c
--- linux-2.5.5-pre1/drivers/ieee1394/pcilynx.c Wed Feb 13 18:18:46 2002
+++ linux/drivers/ieee1394/pcilynx.c Sat Feb 16 17:58:47 2002
@@ -748,10 +748,11 @@
}
if (newoffs < 0 || newoffs > PCILYNX_MAX_MEMORY + 1) {
- lock_kernel();
+ unlock_kernel();
return -EINVAL;
}
+ unlock_kernel();
file->f_pos = newoffs;
return newoffs;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Re: 2.5: further llseek cleanup (3/3)
2002-02-16 23:00 ` [PATCH] " Robert Love
@ 2002-02-16 23:20 ` Robert Love
0 siblings, 0 replies; 3+ messages in thread
From: Robert Love @ 2002-02-16 23:20 UTC (permalink / raw)
To: Manfred Spraul; +Cc: torvalds, linux-kernel
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 );
}
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-02-16 23:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-16 22:31 [PATCH] 2.5: further llseek cleanup (3/3) Manfred Spraul
2002-02-16 23:00 ` [PATCH] " Robert Love
2002-02-16 23:20 ` Robert Love
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox