From: Jesper Juhl Date: Sun, 29 Jan 2012 20:55:28 +0000 (+0100) Subject: staging, media, easycap: Fix mem leak in easycap_usb_probe() X-Git-Tag: v3.4-rc1~186^2~176^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=881763361e8283a6d33d5a30ac6edc36e7dc6d44;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed