V4L/DVB (7550): em28xx: Fix a possible memory leak
authorBrandon Philips <bphilips@suse.de>
Sun, 13 Apr 2008 17:57:01 +0000 (14:57 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:08:48 +0000 (14:08 -0300)
commit0561297501842b5d7e0ca8805084f4d3f97c1078
treecd76584fec0e9307a18efac15069a3c11367a584
parent78bb3949a965e8a28e20988e28868429606b3639
V4L/DVB (7550): em28xx: Fix a possible memory leak

I did notice a possible memory leak since iolock is could possibly be
called before a buffer has been freed.

This ensure s_fmt isn't called while the queue is busy thereby avoiding
iolock on already allocated buffers.

Signed-off-by: Brandon Philips <bphilips@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/em28xx/em28xx-video.c