Re: psmouse unusable in -mm series (was: 2.6.15-rc1-mm2 unsusable on DELL Inspiron 8200, 2.6.15-rc1 works fine)

Dmitry Torokhov
2005-11-26T04:50:34Z

On Friday 25 November 2005 22:54, Dmitry Torokhov wrote:
> > Actually, it works on the console (ie with gpm), but X is unable to use it,
> > apparently.  However it used to be, at least on 2.6.14-git9 (this is the latest
> > non-mm kernel I've been able to test quickly on this box).
> >
>
> Rafael,
>
> does reverting the following patch makes touchpad work?

Or, try dropping this patch on top of -mm.

--
Dmitry

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---

drivers/input/evdev.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

Index: work/drivers/input/evdev.c
===================================================================
--- work.orig/drivers/input/evdev.c
+++ work/drivers/input/evdev.c
@@ -205,11 +205,11 @@ static int evdev_event_to_user(const cha
compat_event.code = event->code;
compat_event.value = event->value;

- if (copy_to_user(&compat_event, buffer, sizeof(struct input_event_compat)))
+ if (copy_to_user(buffer, &compat_event, sizeof(struct input_event_compat)))
return -EFAULT;

} else {
- if (copy_to_user(event, buffer, sizeof(struct input_event)))
+ if (copy_to_user(buffer, event, sizeof(struct input_event)))
return -EFAULT;
}