Re: [PATCH] hidinput: kernel oops in out_cleanup in functionhidinput_connect

From: Jiri Kosina
Date: Tue Feb 15 2011 - 17:48:25 EST


On Tue, 15 Feb 2011, Dmitry Torokhov wrote:

> > Goto out_cleanup infers a kernel oops: hidinput_disconnect calls
> > input_unregister_driver to all members of hid->inputs.
> > However, hidinput already has been added to hid->inputs even
> > though input_register_device was not called.
> >
> > Signed-off-by: Benjamin Tissoires <benjamin.tissoires@xxxxxxx>
>
> Yep, well spotted.
>
> Reviewed-by: Dmitry Torokhov <dtor@xxxxxxx>

Indeed, thanks a lot for spotting this Benjamin. Apparently this codepath
is not excercised too heavily (which is good :) ).

Applied.

--
Jiri Kosina
SUSE Labs, Novell Inc.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/