The patch number 14030 was added via Devin Heitmueller <dheitmuel...@kernellabs.com> to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward compatible with older kernels. Compatibility modifications will be removed before inclusion into the mainstream Kernel If anyone has any objections, please let us know by sending a message to: Linux Media Mailing List <linux-me...@vger.kernel.org> ------ From: Devin Heitmueller <dheitmuel...@kernellabs.com> cx18-alsa: fix memory leak in error condition If the stream is already in use, make sure we free up the memory allocated earlier. Thanks to Andy Wall for reviewing and pointing this out. This work was sponsored by ONELAN Limited. Priority: normal Signed-off-by: Devin Heitmueller <dheitmuel...@kernellabs.com> --- linux/drivers/media/video/cx18/cx18-alsa-pcm.c | 1 + 1 file changed, 1 insertion(+) diff -r 3982fdf7581e -r 9e8b7d942055 linux/drivers/media/video/cx18/cx18-alsa-pcm.c --- a/linux/drivers/media/video/cx18/cx18-alsa-pcm.c Sun Nov 22 21:42:33 2009 -0500 +++ b/linux/drivers/media/video/cx18/cx18-alsa-pcm.c Sat Dec 12 15:38:53 2009 -0500 @@ -99,6 +99,7 @@ /* See if the stream is available */ if (cx18_claim_stream(item, item->type)) { /* No, it's already in use */ + kfree(item); return -EBUSY; } --- Patch is available at: http://linuxtv.org/hg/v4l-dvb/rev/9e8b7d9420558c9bc39339bfafd3dd9a2c922ac3 _______________________________________________ linuxtv-commits mailing list linuxtv-commits@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits