summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wlan-ng/prism2mgmt.c
diff options
context:
space:
mode:
authorJesper Juhl2012-01-29 21:55:28 +0100
committerGreg Kroah-Hartman2012-02-09 18:51:47 +0100
commit881763361e8283a6d33d5a30ac6edc36e7dc6d44 (patch)
treee8cff87f3eb532fe7705282a00592bbe40cde66f /drivers/staging/wlan-ng/prism2mgmt.c
parentstaging: Fix typo in ieee80211_rx.c (diff)
downloadkernel-qcow2-linux-881763361e8283a6d33d5a30ac6edc36e7dc6d44.tar.gz
kernel-qcow2-linux-881763361e8283a6d33d5a30ac6edc36e7dc6d44.tar.xz
kernel-qcow2-linux-881763361e8283a6d33d5a30ac6edc36e7dc6d44.zip
staging, media, easycap: Fix mem leak in easycap_usb_probe()
If allocating 'pdata_urb' fails, the function will return -ENOMEM without freeing the memory allocated, just a few lines above, for 'purb' and will leak that memory when 'purb' goes out of scope. This patch resolves the leak by freeing the allocated storage with usb_free_urb() before the return. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlan-ng/prism2mgmt.c')
0 files changed, 0 insertions, 0 deletions