Re: [PATCH 1/2] HID: don't oops on suspend of non-bound devices

From: Jiri Kosina
Date: Mon Oct 27 2008 - 12:30:00 EST


On Mon, 27 Oct 2008, Jiri Slaby wrote:

> Usbhid structure is allocated on start invoked only from probe
> of some driver. When there is no driver, the structure is null
> and causes null-dereference oopses.
>
> Fix it by allocating the structure on probe and disconnect of
> the device itself. Also make sure we won't race between start
> and resume or stop and suspend respectively.
>
> References: http://bugzilla.kernel.org/show_bug.cgi?id=11827

Applied, thanks.

--
Jiri Kosina
SUSE Labs
--
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/