Skip to content

Commit

Permalink
[PATCH] USB: Fix for ati_remote
Browse files Browse the repository at this point in the history
when stealing code from ati_remote for a GPL-driver of my usbradio (because of
its neat usb int transfers) I found out, that the inbuf is freed twice.

I don't have the ati-remote, so I don't know it is a problem at all, but it
looks strange to me anyway. Also I don't know if it has been fixed already in
newer kernel versions.


From: Patrick Boettcher <patrick.boettcher@desy.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Patrick Boettcher authored and Greg KH committed Apr 23, 2005
1 parent f3fae6e commit 9719b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/input/ati_remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ static void ati_remote_delete(struct ati_remote *ati_remote)

if (ati_remote->outbuf)
usb_buffer_free(ati_remote->udev, DATA_BUFSIZE,
ati_remote->inbuf, ati_remote->outbuf_dma);
ati_remote->outbuf, ati_remote->outbuf_dma);

if (ati_remote->irq_urb)
usb_free_urb(ati_remote->irq_urb);
Expand Down

0 comments on commit 9719b0c

Please sign in to comment.