lkml.org 
[lkml]   [2010]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/2] Provide a driver for the Apple Magic Mouse - opps
On Mon, 15 Feb 2010, Ed Tomlinson wrote:

> > Almost... you need to do hid_hw_stop() first and only then unregister
> > input device, Otherwise if you unload the module while moving the mouse
> > it is likely to still oops.
>
> How about this? It applies on top of yesterdays patch.
>
> Ed
>
> ---
> diff --git a/drivers/hid/hid-magicmouse.c b/drivers/hid/hid-magicmouse.c
> index 7d252d2..46fdeee 100644
> --- a/drivers/hid/hid-magicmouse.c
> +++ b/drivers/hid/hid-magicmouse.c
> @@ -430,8 +430,8 @@ static void magicmouse_remove(struct hid_device *hdev)
> {
> struct magicmouse_sc *msc;
> msc = hid_get_drvdata(hdev);
> - input_unregister_device(msc->input);
> hid_hw_stop(hdev);
> + input_unregister_device(msc->input);
> kfree(msc);
> }

This looks OK.

Could you please send it altogether with short changelog entry and
Signed-off-by line so that I could queue that up?

Thanks,

--
Jiri Kosina
SUSE Labs, Novell Inc.


\
 
 \ /
  Last update: 2010-02-16 13:59    [W:0.104 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site