linux/drivers/media/usb/hdpvr
Alexey Khoroshilov 2e923a0527 [media] hdpvr: fix iteration over uninitialized lists in hdpvr_probe()
free_buff_list and rec_buff_list are initialized in the middle of hdpvr_probe(),
but if something bad happens before that, error handling code calls hdpvr_delete(),
which contains iteration over the lists (via hdpvr_free_buffers()).
The patch moves the lists initialization to the beginning and by the way fixes
goto label in error handling of registering videodev.
Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Cc: stable@vger.kernel.org
2013-09-03 09:24:20 -03:00
..
hdpvr-control.c [media] hdpvr: improve error handling 2013-06-13 11:35:47 -03:00
hdpvr-core.c [media] hdpvr: fix iteration over uninitialized lists in hdpvr_probe() 2013-09-03 09:24:20 -03:00
hdpvr-i2c.c [media] [V2,23/24] usb/hdpvr/hdpvr-i2c.c: use IS_ENABLED() macro 2013-02-06 09:20:41 -02:00
hdpvr-video.c [media] v4l2-dv-timings: rename v4l_match_dv_timings to v4l2_match_dv_timings 2013-08-24 04:26:51 -03:00
hdpvr.h [media] hdpvr: improve error handling 2013-06-13 11:35:47 -03:00
Kconfig [media] media: fix hdpvr kconfig/build errors 2013-05-27 08:51:27 -03:00
Makefile [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00