[PATCH 38/39] input: Fix oops in hiddev

From: Vojtech Pavlik (vojtech_at_suse.cz)
Date: 06/07/04

  • Next message: Benoit Dejean: "Re: [2.6.6 panic] via-rhine and acpi sleep 3"
    To: torvalds@osdl.org, akpm@osdl.org, vojtech@ucw.cz, linux-kernel@vger.kernel.org
    Date:	Mon, 7 Jun 2004 13:55:55 +0200
    
    

    You can pull this changeset from:
            bk://kernel.bkbits.net/vojtech/input-for-linus

    ===================================================================

    ChangeSet@1.1612.1.19, 2004-05-17 13:02:06+02:00, tiwai@suse.de
      input: Fix oops in hiddev

     hiddev.c | 2 +-
     1 files changed, 1 insertion(+), 1 deletion(-)

    ===================================================================

    diff -Nru a/drivers/usb/input/hiddev.c b/drivers/usb/input/hiddev.c
    --- a/drivers/usb/input/hiddev.c 2004-06-07 13:10:21 +02:00
    +++ b/drivers/usb/input/hiddev.c 2004-06-07 13:10:21 +02:00
    @@ -232,7 +232,7 @@
     static struct usb_class_driver hiddev_class;
     static void hiddev_cleanup(struct hiddev *hiddev)
     {
    - hiddev_table[hiddev->hid->minor] = NULL;
    + hiddev_table[hiddev->hid->minor - HIDDEV_MINOR_BASE] = NULL;
             usb_deregister_dev(hiddev->hid->intf, &hiddev_class);
             kfree(hiddev);
     }

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


  • Next message: Benoit Dejean: "Re: [2.6.6 panic] via-rhine and acpi sleep 3"

    Relevant Pages

    • [PATCH] cosmetic jazz_esp updates
      ... * jazz_esp is based on David S. Miller's ESP driver and cyber_esp ... +static void dma_advance_sg ... +static struct scsi_host_template driver_template = { ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH] SH64: [PATCH resend] C99 initializers for hw_interrupt_type structures
      ... Convert the initializers of hw_interrupt_type structures to C99 initializers. ... static void end_intc_irq; ... static struct hw_interrupt_type intc_irq_type = { ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH] fix synclink_gt compile for latest struct pci_driver changes
      ... static void remove_one(struct pci_dev *dev); ... static struct pci_driver pci_driver = { ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] [DRIVER MODEL] Fix arcfb
      ... when the last reference is ... +static struct platform_device *arcfb_device; ... static void __exit arcfb_exit ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [PATCH 2.6] Class support for ppdev.c
      ... +static struct class_simple *ppdev_class; ... +static void pp_attach(struct parport *port) ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)