V4L/DVB (6350): V4L: possible leak in em28xx_init_isoc
commite7222ca9b4e6c6cdabedd8d33da59263ace85a02
authorFlorin Malita <fmalita@gmail.com>
Mon, 15 Oct 2007 15:59:18 +0000 (15 12:59 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 22 Oct 2007 14:01:49 +0000 (22 12:01 -0200)
tree4be415d5c0c9d770543c464ff2b2540542a7cba5
parent2f7362ef9bc9c41436c7f44212a2dcf12dddffbf
V4L/DVB (6350): V4L: possible leak in em28xx_init_isoc

Coverity (CID 1929) spotted the following: if a transfer buffer
allocation fails, the last allocated urb is leaked (it hasn't been
stored in dev->urb[] yet so em28xx_uninit_isoc misses it). The patch
also includes a small typo fix.

Signed-off-by: Florin Malita <fmalita@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/em28xx/em28xx-core.c