]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cx18: Fix list BUG for IDX stream, triggerable in cx18_probe() error clean up,
authorAndy Walls <awalls@md.metrocast.net>
Sun, 27 Mar 2011 23:19:15 +0000 (20:19 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 13 Apr 2011 12:41:02 +0000 (09:41 -0300)
commit54ce37c65edb53d966a2f2ac8e081af1ac12be0c
tree8a53eee601349f8ad5c9aed837ac752a25e9936b
parentea188be19f2992fbe038437fa1bae8c2d4e43bc1
[media] cx18: Fix list BUG for IDX stream, triggerable in cx18_probe() error clean up,

If allocating stream buffers for one of the primary streams (e.g. YUV)
failed during card probe, the error path clean up would try to manipulate
the yet unitialized IDX stream structures.  This caused a BUG due to
unitialized list heads.

Detect that case and ignore the uninitialized IDX stream.

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-streams.c