lkml.org 
[lkml]   [1999]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectbusmouse changes
Hi

With the new busmouse changes in 2.3.13 I had problems with the Amiga
mouse driver behaving really strange. I thought it was related to
drivers/char/amigamouse.c but I was wrong.

It does actually make a difference in what order arguments are passed
to kmalloc() ;-)

Jes

--- /home/jes/tmp/2.3.14-pre1/drivers/char/busmouse.c Tue Aug 10 09:36:10 1999
+++ drivers/char/busmouse.c Sun Aug 15 19:44:57 1999
@@ -380,7 +380,7 @@
if (busmouse_data[msedev])
return -EBUSY;

- mse = kmalloc(GFP_KERNEL, sizeof(*mse));
+ mse = kmalloc(sizeof(*mse), GFP_KERNEL);
if (!mse)
return -ENOMEM;

@@ -465,6 +465,7 @@
return 0;
}

+EXPORT_SYMBOL(busmouse_add_movementbuttons);
EXPORT_SYMBOL(busmouse_add_movement);
EXPORT_SYMBOL(busmouse_add_buttons);
EXPORT_SYMBOL(register_busmouse);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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