Commit 3e2372f8 authored by David S. Miller's avatar David S. Miller Committed by David S. Miller

[PATCH] USB: usbkbd fix

parent abb3037e
...@@ -280,7 +280,7 @@ static int usb_kbd_probe(struct usb_interface *iface, ...@@ -280,7 +280,7 @@ static int usb_kbd_probe(struct usb_interface *iface,
if (!(buf = kmalloc(63, GFP_KERNEL))) { if (!(buf = kmalloc(63, GFP_KERNEL))) {
usb_free_urb(kbd->irq); usb_free_urb(kbd->irq);
usb_kbd_free_buffers(dev, kbd); usb_kbd_free_mem(dev, kbd);
kfree(kbd); kfree(kbd);
return -ENOMEM; return -ENOMEM;
} }
...@@ -321,7 +321,7 @@ static void usb_kbd_disconnect(struct usb_interface *intf) ...@@ -321,7 +321,7 @@ static void usb_kbd_disconnect(struct usb_interface *intf)
if (kbd) { if (kbd) {
usb_unlink_urb(kbd->irq); usb_unlink_urb(kbd->irq);
input_unregister_device(&kbd->dev); input_unregister_device(&kbd->dev);
usb_kbd_free_buffers(interface_to_usbdev(intf), kbd); usb_kbd_free_mem(interface_to_usbdev(intf), kbd);
kfree(kbd); kfree(kbd);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment