public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] dz.c 64 bit locking issues
@ 2001-08-16  4:26 jes
  2001-08-17 14:40 ` Ralf Baechle
  0 siblings, 1 reply; 5+ messages in thread
From: jes @ 2001-08-16  4:26 UTC (permalink / raw)
  To: olivier.lebaillif; +Cc: alan, torvalds, linux-kernel

Hi

The dz.c driver has an instance where it does save_flags() to a 32 bit
type which isn't safe for 64 bit boxen.

Jes

--- drivers/char/dz.c~	Wed Jul  4 17:41:33 2001
+++ drivers/char/dz.c	Thu Aug 16 00:24:48 2001
@@ -1279,7 +1279,8 @@
 
 int __init dz_init(void)
 {
-  int i, flags;
+  int i;
+  unsigned long flags;
   struct dz_serial *info;
 
   /* Setup base handler, and timer table. */

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [patch] dz.c 64 bit locking issues
@ 2001-08-16  4:30 jes
  0 siblings, 0 replies; 5+ messages in thread
From: jes @ 2001-08-16  4:30 UTC (permalink / raw)
  To: torvalds; +Cc: alan, linux-kernel

Hi

Another 64 bit flags bug.

Cheers
Jes

--- drivers/char/n_r3964.c~	Wed Jun 27 17:13:01 2001
+++ drivers/char/n_r3964.c	Thu Aug 16 00:29:13 2001
@@ -1421,7 +1421,7 @@
    int pid=current->pid;
    struct r3964_client_info *pClient;
    struct r3964_message *pMsg=NULL;
-   unsigned int flags;
+   unsigned long flags;
    int result = POLLOUT;
 
    TRACE_L("POLL");

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-08-17 16:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-16  4:26 [patch] dz.c 64 bit locking issues jes
2001-08-17 14:40 ` Ralf Baechle
2001-08-17 15:57   ` Maciej W. Rozycki
2001-08-17 15:59     ` Jes Sorensen
  -- strict thread matches above, loose matches on Subject: below --
2001-08-16  4:30 jes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox