Re: [patch 09/13] ACPI: Atlas ACPI driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/1/06, akpm@xxxxxxxx <akpm@xxxxxxxx> wrote:
+
+static int atlas_acpi_button_remove(struct acpi_device *device, int type)
+{
+       acpi_status status;
+
+       atlas_free_input();
+       status = acpi_remove_address_space_handler(device->handle,
+                               0x81, &acpi_atlas_button_handler);
+       if (ACPI_FAILURE(status))
+               printk(KERN_ERR "Atlas: Error removing addr spc handler\n");
+

I think that you should free (unregister) input device only after
button handler was unregistered, otherwise there is a risk that it
will try to access already freed device. Other than that input part
looks good.

--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux