Re: [PATCH] ACPI: New driver for Lenovo SL laptops

From: Dmitry Torokhov
Date: Fri Sep 25 2009 - 00:34:55 EST


On Thu, Sep 24, 2009 at 11:12:43PM +0800, Ike Panhc wrote:
> +
> +static void hkey_inputdev_exit(void)
> +{
> + if (hkey_inputdev) {
> + input_unregister_device(hkey_inputdev);
> + input_free_device(hkey_inputdev);

input_free_device() should not be called after input_unregister_device().

--
Dmitry
--
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/