ALSA: usb-audio: Remove from list in snd_usb_endpoint_free()
PATCH 1/1 ALSA: usb-audio: Remove from list in snd_usb_endpoint_free()
snd_usb_endpoint_free() deallocates the object but it doesn't unlink from the list. This is actually no problem in the current usage because all elements are freed at once, but it's more consistent to do a proper unlinking there.
Reported-by Julia Lawall <[email protected]>
Signed-off-by Takashi Iwai <[email protected]>
---
This is a 3.17 material.
sound/usb/endpoint.c | 1 + 1 file changed, 1 insertion(+)
sound/usb/endpoint.c +1 -0
@@ -1011,6 +1011,7 @@ void snd_usb_endpoint_free(struct list_head *head)struct snd_usb_endpoint *ep; ep = list_entry(head, struct snd_usb_endpoint, list); +list_del (head);kfree (ep); }
Signature · 1 line
2.0.0