]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (11079): au0828: fix panic on disconnect if analog initialization failed
authorDevin Heitmueller <dheitmueller@linuxtv.org>
Wed, 11 Mar 2009 06:01:02 +0000 (03:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:43:27 +0000 (12:43 -0300)
commitc03cdfab87f3ace491e5fe4dc30da27c7450ec8c
tree60d99f425958a6822eef9e743010cdfd79424f7d
parente2c494b5165c6c65be8d58ebdf67a4260b0f66c7
V4L/DVB (11079): au0828: fix panic on disconnect if analog initialization failed

If the analog initialization failed to create the video device, we never
actually add the entry to the au0828_devlist.  Therefore a panic occurs when
unregistering the analog subsystem.

Make it so we only remove the entry from the list if we added it to the list
in the first place.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/au0828/au0828-video.c