Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9719b0c2 authored by Patrick Boettcher's avatar Patrick Boettcher Committed by Greg Kroah-Hartman
Browse files

[PATCH] USB: Fix for ati_remote



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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f3fae6ed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);