]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (3488): Snd_cx88_create: don't dereference NULL core
authorDuncan Sands <duncan.sands@math.u\-psud.fr>
Tue, 14 Mar 2006 15:12:39 +0000 (12:12 -0300)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 21 Mar 2006 16:53:21 +0000 (08:53 -0800)
commit3d2b866c3f1afc012824a8c76192a7e3650a6064
tree889d77d98d5584c7f90293344e56da62fd77a891
parent5fe7a29b9b7fc274e75e3cc9b9a4ef396d250cab
V4L/DVB (3488): Snd_cx88_create: don't dereference NULL core

If the call to cx88_core_get returns a NULL value, it is dereferenced
by cx88_reset, and perhaps by cx88_core_put.  Spotted by the Coverity
checker.

Signed-off-by: Duncan Sands <baldrick@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx88/cx88-alsa.c