summaryrefslogtreecommitdiff
path: root/CREDITS
diff options
context:
space:
mode:
authorWenwen Wang <wang6495@umn.edu>2019-04-29 12:45:40 -0500
committerTakashi Iwai <tiwai@suse.de>2019-04-29 19:56:41 +0200
commitcbb88db76a1536e02e93e5bd37ebbfbb6c4043a9 (patch)
treedf45aeaa58f1d3638549c8812049764e73a4b7f0 /CREDITS
parentb60ee2e281b6c67cbe0bb8412f3cae53903173c6 (diff)
downloadlwn-cbb88db76a1536e02e93e5bd37ebbfbb6c4043a9.tar.gz
lwn-cbb88db76a1536e02e93e5bd37ebbfbb6c4043a9.zip
ALSA: usx2y: fix a double free bug
In usX2Y_In04_init(), a new urb is firstly created through usb_alloc_urb() and saved to 'usX2Y->In04urb'. Then, a buffer is allocated through kmalloc() and saved to 'usX2Y->In04Buf'. If the allocation of the buffer fails, the error code ENOMEM is returned after usb_free_urb(), which frees the created urb. However, the urb is actually freed at card->private_free callback, i.e., snd_usX2Y_card_private_free(). So the free operation here leads to a double free bug. To fix the above issue, simply remove usb_free_urb(). Signed-off-by: Wenwen Wang <wang6495@umn.edu> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions